1
0
mirror of https://github.com/cookiengineer/audacity synced 2025-08-16 08:34:10 +02:00

more i18n-hints about "codec"

This commit is contained in:
Paul Licameli 2019-12-19 14:49:42 -05:00
parent 092033b284
commit cd0e1e680a
3 changed files with 10 additions and 1 deletions

View File

@ -502,6 +502,7 @@ bool ExportFFmpeg::InitCodecs(AudacityProject *project)
// Is the required audio codec compiled into libavcodec? // Is the required audio codec compiled into libavcodec?
if (codec == NULL) if (codec == NULL)
{ {
/* i18n-hint: "codec" is short for a "coder-decoder" algorithm */
AudacityMessageBox(wxString::Format(_("FFmpeg cannot find audio codec 0x%x.\nSupport for this codec is probably not compiled in."), (unsigned int) mEncAudioCodecCtx->codec_id), AudacityMessageBox(wxString::Format(_("FFmpeg cannot find audio codec 0x%x.\nSupport for this codec is probably not compiled in."), (unsigned int) mEncAudioCodecCtx->codec_id),
_("FFmpeg Error"), wxOK|wxCENTER|wxICON_EXCLAMATION); _("FFmpeg Error"), wxOK|wxCENTER|wxICON_EXCLAMATION);
return false; return false;
@ -535,6 +536,7 @@ bool ExportFFmpeg::InitCodecs(AudacityProject *project)
// Open the codec. // Open the codec.
if (avcodec_open2(mEncAudioCodecCtx.get(), codec, &options) < 0) if (avcodec_open2(mEncAudioCodecCtx.get(), codec, &options) < 0)
{ {
/* i18n-hint: "codec" is short for a "coder-decoder" algorithm */
AudacityMessageBox(wxString::Format(_("FFmpeg : ERROR - Can't open audio codec 0x%x."),mEncAudioCodecCtx->codec_id), AudacityMessageBox(wxString::Format(_("FFmpeg : ERROR - Can't open audio codec 0x%x."),mEncAudioCodecCtx->codec_id),
_("FFmpeg Error"), wxOK|wxCENTER|wxICON_EXCLAMATION); _("FFmpeg Error"), wxOK|wxCENTER|wxICON_EXCLAMATION);
return false; return false;

View File

@ -708,6 +708,7 @@ bool FFmpegPresets::SavePreset(ExportFFmpegOptions *parent, wxString &name)
lb = dynamic_cast<wxListBox*>(wnd); lb = dynamic_cast<wxListBox*>(wnd);
if (lb->GetSelection() < 0) if (lb->GetSelection() < 0)
{ {
/* i18n-hint: "codec" is short for a "coder-decoder" algorithm */
AudacityMessageBox(_("Please select codec before saving a profile")); AudacityMessageBox(_("Please select codec before saving a profile"));
return false; return false;
} }
@ -1548,6 +1549,7 @@ void ExportFFmpegOptions::PopulateOrExchange(ShuttleGui & S)
S.SetStretchyCol(3); S.SetStretchyCol(3);
S.Id(FEFormatLabelID).AddFixedText(_("Format:")); S.Id(FEFormatLabelID).AddFixedText(_("Format:"));
mFormatName = S.Id(FEFormatNameID).AddVariableText( {} ); mFormatName = S.Id(FEFormatNameID).AddVariableText( {} );
/* i18n-hint: "codec" is short for a "coder-decoder" algorithm */
S.Id(FECodecLabelID).AddFixedText(_("Codec:")); S.Id(FECodecLabelID).AddFixedText(_("Codec:"));
mCodecName = S.Id(FECodecNameID).AddVariableText( {} ); mCodecName = S.Id(FECodecNameID).AddVariableText( {} );
} }
@ -1590,6 +1592,7 @@ void ExportFFmpegOptions::PopulateOrExchange(ShuttleGui & S)
S.StartMultiColumn(4, wxALIGN_LEFT); S.StartMultiColumn(4, wxALIGN_LEFT);
{ {
mTag = S.Id(FETagID) mTag = S.Id(FETagID)
/* i18n-hint: "codec" is short for a "coder-decoder" algorithm */
.ToolTip(XO("Codec tag (FOURCC)\nOptional\nempty - automatic")) .ToolTip(XO("Codec tag (FOURCC)\nOptional\nempty - automatic"))
.TieTextBox(_("Tag:"), {wxT("/FileFormats/FFmpegTag"), wxEmptyString}, 4); .TieTextBox(_("Tag:"), {wxT("/FileFormats/FFmpegTag"), wxEmptyString}, 4);
@ -2098,10 +2101,12 @@ bool ExportFFmpegOptions::ReportIfBadCombination()
if( bFound ) if( bFound )
return false; return false;
AudacityMessageBox( AudacityMessageBox(
/* i18n-hint: "codec" is short for a "coder-decoder" algorithm */
wxString::Format(_("Format %s is not compatible with codec %s."), wxString::Format(_("Format %s is not compatible with codec %s."),
*selfmt, *selfmt,
*selcdc ), *selcdc ),
/* i18n-hint: "codec" is short for a "coder-decoder" algorithm */
_("Incompatible format and codec")); _("Incompatible format and codec"));
return true; return true;
@ -2195,6 +2200,7 @@ void ExportFFmpegOptions::DoOnCodecList()
if (cdc == NULL) if (cdc == NULL)
{ {
//This shouldn't really happen //This shouldn't really happen
/* i18n-hint: "codec" is short for a "coder-decoder" algorithm */
mCodecName->SetLabel(wxString(_("Failed to find the codec"))); mCodecName->SetLabel(wxString(_("Failed to find the codec")));
return; return;
} }

View File

@ -234,6 +234,7 @@ using Unevaluated = decltype(
, XO("AU (Sun/NeXT)") , XO("AU (Sun/NeXT)")
, XO("AVR (Audio Visual Research)") , XO("AVR (Audio Visual Research)")
, XO("CAF (Apple Core Audio File)") , XO("CAF (Apple Core Audio File)")
/* i18n-hint: "codec" is short for a "coder-decoder" algorithm */
, XO("FLAC (FLAC Lossless Audio Codec)") , XO("FLAC (FLAC Lossless Audio Codec)")
, XO("HTK (HMM Tool Kit)") , XO("HTK (HMM Tool Kit)")
, XO("IFF (Amiga IFF/SVX8/SV16)") , XO("IFF (Amiga IFF/SVX8/SV16)")