mirror of
https://github.com/cookiengineer/audacity
synced 2025-05-03 00:59:43 +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);
|
int err = ov_open(file->fp(), vorbisFile.get(), NULL, 0);
|
||||||
|
|
||||||
if (err < 0) {
|
if (err < 0) {
|
||||||
wxString message;
|
TranslatableString message;
|
||||||
|
|
||||||
switch (err) {
|
switch (err) {
|
||||||
case OV_EREAD:
|
case OV_EREAD:
|
||||||
message = _("Media read error");
|
message = XO("Media read error");
|
||||||
break;
|
break;
|
||||||
case OV_ENOTVORBIS:
|
case OV_ENOTVORBIS:
|
||||||
message = _("Not an Ogg Vorbis file");
|
message = XO("Not an Ogg Vorbis file");
|
||||||
break;
|
break;
|
||||||
case OV_EVERSION:
|
case OV_EVERSION:
|
||||||
message = _("Vorbis version mismatch");
|
message = XO("Vorbis version mismatch");
|
||||||
break;
|
break;
|
||||||
case OV_EBADHEADER:
|
case OV_EBADHEADER:
|
||||||
message = _("Invalid Vorbis bitstream header");
|
message = XO("Invalid Vorbis bitstream header");
|
||||||
break;
|
break;
|
||||||
case OV_EFAULT:
|
case OV_EFAULT:
|
||||||
message = _("Internal logic fault");
|
message = XO("Internal logic fault");
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -356,10 +356,9 @@ wxString GUIPrefs::SetLang( const wxString & lang )
|
|||||||
wxTheApp->ProcessEvent(evt);
|
wxTheApp->ProcessEvent(evt);
|
||||||
}
|
}
|
||||||
|
|
||||||
// PRL: Moved this, do it only after language intialized
|
|
||||||
// Unused strings that we want to be translated, even though
|
// Unused strings that we want to be translated, even though
|
||||||
// we're not using them yet...
|
// we're not using them yet...
|
||||||
wxString future1 = _("Master Gain Control");
|
using future1 = decltype( XO("Master Gain Control") );
|
||||||
|
|
||||||
return result;
|
return result;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user