mirror of
https://github.com/cookiengineer/audacity
synced 2025-05-02 16:49:41 +02:00
TranslatableString for some maybe-useful-in-future strings
This commit is contained in:
parent
61161a2f00
commit
eaffb4ed74
@ -186,23 +186,23 @@ std::unique_ptr<ImportFileHandle> OggImportPlugin::Open(const FilePath &filename
|
||||
int err = ov_open(file->fp(), vorbisFile.get(), NULL, 0);
|
||||
|
||||
if (err < 0) {
|
||||
wxString message;
|
||||
TranslatableString message;
|
||||
|
||||
switch (err) {
|
||||
case OV_EREAD:
|
||||
message = _("Media read error");
|
||||
message = XO("Media read error");
|
||||
break;
|
||||
case OV_ENOTVORBIS:
|
||||
message = _("Not an Ogg Vorbis file");
|
||||
message = XO("Not an Ogg Vorbis file");
|
||||
break;
|
||||
case OV_EVERSION:
|
||||
message = _("Vorbis version mismatch");
|
||||
message = XO("Vorbis version mismatch");
|
||||
break;
|
||||
case OV_EBADHEADER:
|
||||
message = _("Invalid Vorbis bitstream header");
|
||||
message = XO("Invalid Vorbis bitstream header");
|
||||
break;
|
||||
case OV_EFAULT:
|
||||
message = _("Internal logic fault");
|
||||
message = XO("Internal logic fault");
|
||||
break;
|
||||
}
|
||||
|
||||
|
@ -356,10 +356,9 @@ wxString GUIPrefs::SetLang( const wxString & lang )
|
||||
wxTheApp->ProcessEvent(evt);
|
||||
}
|
||||
|
||||
// PRL: Moved this, do it only after language intialized
|
||||
// Unused strings that we want to be translated, even though
|
||||
// we're not using them yet...
|
||||
wxString future1 = _("Master Gain Control");
|
||||
using future1 = decltype( XO("Master Gain Control") );
|
||||
|
||||
return result;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user