1
0
mirror of https://github.com/cookiengineer/audacity synced 2026-02-17 08:17:59 +01:00

TranslatableString for prompts of choice controls

This commit is contained in:
Paul Licameli
2019-12-22 15:21:07 -05:00
parent 1944ac2040
commit 21e7b9f2de
40 changed files with 105 additions and 104 deletions

View File

@@ -108,9 +108,9 @@ void GetInfoCommand::PopulateOrExchange(ShuttleGui & S)
S.StartMultiColumn(2, wxALIGN_CENTER);
{
S.TieChoice( _("Type:"),
S.TieChoice( XO("Type:"),
mInfoType, Msgids( kTypes, nTypes ));
S.TieChoice( _("Format:"),
S.TieChoice( XO("Format:"),
mFormat, Msgids( kFormats, nFormats ));
}
S.EndMultiColumn();
@@ -206,7 +206,7 @@ public:
const SettingSpec< bool > &Setting) override;
wxChoice * TieNumberAsChoice(
const wxString &Prompt,
const TranslatableString &Prompt,
const SettingSpec< int > &Setting,
const TranslatableStrings & Choices,
const std::vector<int> * pInternalChoices, int iNoMatchSelector ) override;
@@ -271,7 +271,7 @@ wxCheckBox * ShuttleGuiGetDefinition::TieCheckBoxOnRight(
return ShuttleGui::TieCheckBoxOnRight( Prompt, Setting );
}
wxChoice * ShuttleGuiGetDefinition::TieNumberAsChoice(
const wxString &Prompt,
const TranslatableString &Prompt,
const SettingSpec< int > &Setting,
const TranslatableStrings & Choices,
const std::vector<int> * pInternalChoices, int iNoMatchSelector)
@@ -281,7 +281,7 @@ wxChoice * ShuttleGuiGetDefinition::TieNumberAsChoice(
// "Other..."
StartStruct();
AddItem( Setting.GetPath(), "id" );
AddItem( Prompt, "prompt" );
AddItem( Prompt.Translation(), "prompt" );
AddItem( "number", "type" ); // not "enum" !
AddItem( Setting.GetDefault(), "default" );
EndStruct();