You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
errorMessage.Printf(_("\"%s\"\nis a MIDI file, not an audio file. \nAudacity cannot open this type of file for playing, but you can\nedit it by clicking File > Import > MIDI."), fName);
359
+
errorMessage = XO(
360
+
"\"%s\"\nis a MIDI file, not an audio file. \nAudacity cannot open this type of file for playing, but you can\nedit it by clicking File > Import > MIDI.")
// if someone has sent us a .cda file, send them away
602
603
if (extension.IsSameAs(wxT("cda"), false)) {
603
604
/* i18n-hint: %s will be the filename */
604
-
errorMessage.Printf(_("\"%s\" is an audio CD track. \nAudacity cannot open audio CDs directly. \nExtract (rip) the CD tracks to an audio format that \nAudacity can import, such as WAV or AIFF."), fName);
605
+
errorMessage = XO(
606
+
"\"%s\" is an audio CD track. \nAudacity cannot open audio CDs directly. \nExtract (rip) the CD tracks to an audio format that \nAudacity can import, such as WAV or AIFF.")
607
+
.Format( fName );
605
608
returnfalse;
606
609
}
607
610
608
611
// playlist type files
609
612
if ((extension.IsSameAs(wxT("m3u"), false))||(extension.IsSameAs(wxT("ram"), false))||(extension.IsSameAs(wxT("pls"), false))) {
610
-
errorMessage.Printf(_("\"%s\" is a playlist file. \nAudacity cannot open this file because it only contains links to other files. \nYou may be able to open it in a text editor and download the actual audio files."), fName);
613
+
errorMessage = XO(
614
+
"\"%s\" is a playlist file. \nAudacity cannot open this file because it only contains links to other files. \nYou may be able to open it in a text editor and download the actual audio files.")
615
+
.Format( fName );
611
616
returnfalse;
612
617
}
613
618
//WMA files of various forms
614
619
if ((extension.IsSameAs(wxT("wma"), false))||(extension.IsSameAs(wxT("asf"), false))) {
615
-
errorMessage.Printf(_("\"%s\" is a Windows Media Audio file. \nAudacity cannot open this type of file due to patent restrictions. \nYou need to convert it to a supported audio format, such as WAV or AIFF."), fName);
620
+
errorMessage = XO(
621
+
"\"%s\" is a Windows Media Audio file. \nAudacity cannot open this type of file due to patent restrictions. \nYou need to convert it to a supported audio format, such as WAV or AIFF.")
622
+
.Format( fName );
616
623
returnfalse;
617
624
}
618
625
//AAC files of various forms (probably not encrypted)
619
626
if ((extension.IsSameAs(wxT("aac"), false))||(extension.IsSameAs(wxT("m4a"), false))||(extension.IsSameAs(wxT("m4r"), false))||(extension.IsSameAs(wxT("mp4"), false))) {
620
-
errorMessage.Printf(_("\"%s\" is an Advanced Audio Coding file.\nWithout the optional FFmpeg library, Audacity cannot open this type of file.\nOtherwise, you need to convert it to a supported audio format, such as WAV or AIFF."), fName);
627
+
errorMessage = XO(
628
+
"\"%s\" is an Advanced Audio Coding file.\nWithout the optional FFmpeg library, Audacity cannot open this type of file.\nOtherwise, you need to convert it to a supported audio format, such as WAV or AIFF.")
629
+
.Format( fName );
621
630
returnfalse;
622
631
}
623
632
// encrypted itunes files
624
633
if ((extension.IsSameAs(wxT("m4p"), false))) {
625
-
errorMessage.Printf(_("\"%s\" is an encrypted audio file. \nThese typically are from an online music store. \nAudacity cannot open this type of file due to the encryption. \nTry recording the file into Audacity, or burn it to audio CD then \nextract the CD track to a supported audio format such as WAV or AIFF."), fName);
634
+
errorMessage = XO(
635
+
"\"%s\" is an encrypted audio file. \nThese typically are from an online music store. \nAudacity cannot open this type of file due to the encryption. \nTry recording the file into Audacity, or burn it to audio CD then \nextract the CD track to a supported audio format such as WAV or AIFF.")
636
+
.Format( fName );
626
637
returnfalse;
627
638
}
628
639
// Real Inc. files of various sorts
629
640
if ((extension.IsSameAs(wxT("ra"), false))||(extension.IsSameAs(wxT("rm"), false))||(extension.IsSameAs(wxT("rpm"), false))) {
630
-
errorMessage.Printf(_("\"%s\" is a RealPlayer media file. \nAudacity cannot open this proprietary format. \nYou need to convert it to a supported audio format, such as WAV or AIFF."), fName);
641
+
errorMessage = XO(
642
+
"\"%s\" is a RealPlayer media file. \nAudacity cannot open this proprietary format. \nYou need to convert it to a supported audio format, such as WAV or AIFF.")
643
+
.Format( fName );
631
644
returnfalse;
632
645
}
633
646
634
647
// Other notes-based formats
635
648
if ((extension.IsSameAs(wxT("kar"), false))||(extension.IsSameAs(wxT("mod"), false))||(extension.IsSameAs(wxT("rmi"), false))) {
636
-
errorMessage.Printf(_("\"%s\" is a notes-based file, not an audio file. \nAudacity cannot open this type of file. \nTry converting it to an audio file such as WAV or AIFF and \nthen import it, or record it into Audacity."), fName);
649
+
errorMessage = XO(
650
+
"\"%s\" is a notes-based file, not an audio file. \nAudacity cannot open this type of file. \nTry converting it to an audio file such as WAV or AIFF and \nthen import it, or record it into Audacity.")
651
+
.Format( fName );
637
652
returnfalse;
638
653
}
639
654
640
655
// MusePack files
641
656
if ((extension.IsSameAs(wxT("mp+"), false))||(extension.IsSameAs(wxT("mpc"), false))||(extension.IsSameAs(wxT("mpp"), false))) {
642
-
errorMessage.Printf(_("\"%s\" is a Musepack audio file. \nAudacity cannot open this type of file. \nIf you think it might be an mp3 file, rename it to end with \".mp3\"\nand try importing it again. Otherwise you need to convert it to a supported audio \nformat, such as WAV or AIFF."), fName);
657
+
errorMessage = XO(
658
+
"\"%s\" is a Musepack audio file. \nAudacity cannot open this type of file. \nIf you think it might be an mp3 file, rename it to end with \".mp3\"\nand try importing it again. Otherwise you need to convert it to a supported audio \nformat, such as WAV or AIFF.")
659
+
.Format( fName );
643
660
returnfalse;
644
661
}
645
662
646
663
// WavPack files
647
664
if ((extension.IsSameAs(wxT("wv"), false))||(extension.IsSameAs(wxT("wvc"), false))) {
648
-
errorMessage.Printf(_("\"%s\" is a Wavpack audio file. \nAudacity cannot open this type of file. \nYou need to convert it to a supported audio format, such as WAV or AIFF."), fName);
665
+
errorMessage = XO(
666
+
"\"%s\" is a Wavpack audio file. \nAudacity cannot open this type of file. \nYou need to convert it to a supported audio format, such as WAV or AIFF.")
667
+
.Format( fName );
649
668
returnfalse;
650
669
}
651
670
652
671
// AC3 files
653
672
if ((extension.IsSameAs(wxT("ac3"), false))) {
654
-
errorMessage.Printf(_("\"%s\" is a Dolby Digital audio file. \nAudacity cannot currently open this type of file. \nYou need to convert it to a supported audio format, such as WAV or AIFF."), fName);
673
+
errorMessage = XO(
674
+
"\"%s\" is a Dolby Digital audio file. \nAudacity cannot currently open this type of file. \nYou need to convert it to a supported audio format, such as WAV or AIFF.")
675
+
.Format( fName );
655
676
returnfalse;
656
677
}
657
678
658
679
// Speex files
659
680
if ((extension.IsSameAs(wxT("spx"), false))) {
660
-
errorMessage.Printf(_("\"%s\" is an Ogg Speex audio file. \nAudacity cannot currently open this type of file. \nYou need to convert it to a supported audio format, such as WAV or AIFF."), fName);
681
+
errorMessage = XO(
682
+
"\"%s\" is an Ogg Speex audio file. \nAudacity cannot currently open this type of file. \nYou need to convert it to a supported audio format, such as WAV or AIFF.")
683
+
.Format( fName );
661
684
returnfalse;
662
685
}
663
686
664
687
// Video files of various forms
665
688
if ((extension.IsSameAs(wxT("mpg"), false))||(extension.IsSameAs(wxT("mpeg"), false))||(extension.IsSameAs(wxT("avi"), false))||(extension.IsSameAs(wxT("wmv"), false))||(extension.IsSameAs(wxT("rv"), false))) {
666
-
errorMessage.Printf(_("\"%s\" is a video file. \nAudacity cannot currently open this type of file. \nYou need to extract the audio to a supported format, such as WAV or AIFF."), fName);
689
+
errorMessage = XO(
690
+
"\"%s\" is a video file. \nAudacity cannot currently open this type of file. \nYou need to extract the audio to a supported format, such as WAV or AIFF.")
691
+
.Format( fName );
667
692
returnfalse;
668
693
}
669
694
670
695
// Audacity project
671
696
if (extension.IsSameAs(wxT("aup"), false)) {
672
-
errorMessage.Printf(_("\"%s\" is an Audacity Project file. \nUse the 'File > Open' command to open Audacity Projects."), fName);
697
+
errorMessage = XO(
698
+
"\"%s\" is an Audacity Project file. \nUse the 'File > Open' command to open Audacity Projects.")
699
+
.Format( fName );
673
700
returnfalse;
674
701
}
675
702
676
703
if( !wxFileExists(fName)){
677
-
errorMessage.Printf(_("File \"%s\" not found."),fName);
704
+
errorMessage = XO( "File \"%s\" not found.").Format(fName);
678
705
returnfalse;
679
706
}
680
707
681
708
// we were not able to recognize the file type
682
-
errorMessage.Printf(_("Audacity did not recognize the type of the file '%s'.\nTry installing FFmpeg. For uncompressed files, also try File > Import > Raw Data."),fName);
709
+
errorMessage = XO(
710
+
"Audacity did not recognize the type of the file '%s'.\nTry installing FFmpeg. For uncompressed files, also try File > Import > Raw Data.")
711
+
.Format( fName );
683
712
}
684
713
else
685
714
{
686
715
// We DO have a plugin for this file, but import failed.
errorMessage.Printf(_("Audacity recognized the type of the file '%s'.\nImporters supposedly supporting such files are:\n%s,\nbut none of them understood this file format."),fName, pluglist);
727
+
errorMessage = XO(
728
+
"Audacity recognized the type of the file '%s'.\nImporters supposedly supporting such files are:\n%s,\nbut none of them understood this file format.")
0 commit comments