mirror of
https://github.com/cookiengineer/audacity
synced 2025-10-21 14:02:57 +02:00
Supply some missing translation in Macros dialogs...
... The "Set" prompt for checkboxes; Strings in Choice controls, which had been declared translatable with XO, but the translations not yet used. This can be tested in Ukrainian locale now, for editing parameters of commands like Select or Drag, but be aware that even uk.po is not up to date for all recent changes in the Manage Macros dialog itself.
This commit is contained in:
@@ -61,7 +61,7 @@ bool DragCommand::DefineParams( ShuttleParams & S ){
|
||||
|
||||
void DragCommand::PopulateOrExchange(ShuttleGui & S)
|
||||
{
|
||||
wxArrayString coords( nCoordTypes, kCoordTypeStrings );
|
||||
auto coords = LocalizedStrings( kCoordTypeStrings, nCoordTypes );
|
||||
|
||||
S.AddSpace(0, 5);
|
||||
|
||||
|
@@ -94,8 +94,8 @@ bool GetInfoCommand::DefineParams( ShuttleParams & S ){
|
||||
|
||||
void GetInfoCommand::PopulateOrExchange(ShuttleGui & S)
|
||||
{
|
||||
wxArrayString types( nTypes, kTypes );
|
||||
wxArrayString formats( nFormats, kFormats );
|
||||
auto types = LocalizedStrings( kTypes, nTypes );
|
||||
auto formats = LocalizedStrings( kFormats, nFormats );
|
||||
S.AddSpace(0, 5);
|
||||
|
||||
S.StartMultiColumn(2, wxALIGN_CENTER);
|
||||
|
@@ -48,7 +48,7 @@ bool GetTrackInfoCommand::DefineParams( ShuttleParams & S ){
|
||||
|
||||
void GetTrackInfoCommand::PopulateOrExchange(ShuttleGui & S)
|
||||
{
|
||||
wxArrayString types( nTypes, kTypes );
|
||||
auto types = LocalizedStrings( kTypes, nTypes );
|
||||
S.AddSpace(0, 5);
|
||||
|
||||
S.StartMultiColumn(2, wxALIGN_CENTER);
|
||||
|
@@ -148,8 +148,8 @@ bool ScreenshotCommand::DefineParams( ShuttleParams & S ){
|
||||
|
||||
void ScreenshotCommand::PopulateOrExchange(ShuttleGui & S)
|
||||
{
|
||||
wxArrayString whats(nCaptureWhats, kCaptureWhatStrings);
|
||||
wxArrayString backs(nBackgrounds, kBackgroundStrings);
|
||||
auto whats = LocalizedStrings(kCaptureWhatStrings, nCaptureWhats);
|
||||
auto backs = LocalizedStrings(kBackgroundStrings, nBackgrounds);
|
||||
S.AddSpace(0, 5);
|
||||
|
||||
S.StartMultiColumn(2, wxALIGN_CENTER);
|
||||
|
@@ -107,6 +107,7 @@ bool SelectFrequenciesCommand::Apply(const CommandContext & context){
|
||||
const int nModes =3;
|
||||
static const wxString kModes[nModes] =
|
||||
{
|
||||
/* i18n-hint verb, imperative */
|
||||
XO("Set"),
|
||||
XO("Add"),
|
||||
XO("Remove")
|
||||
@@ -123,7 +124,7 @@ bool SelectTracksCommand::DefineParams( ShuttleParams & S ){
|
||||
|
||||
void SelectTracksCommand::PopulateOrExchange(ShuttleGui & S)
|
||||
{
|
||||
wxArrayString modes( nModes, kModes );
|
||||
auto modes = LocalizedStrings( kModes, nModes );
|
||||
S.AddSpace(0, 5);
|
||||
|
||||
S.StartMultiColumn(3, wxALIGN_CENTER);
|
||||
|
@@ -61,7 +61,7 @@ bool SetClipCommand::DefineParams( ShuttleParams & S ){
|
||||
|
||||
void SetClipCommand::PopulateOrExchange(ShuttleGui & S)
|
||||
{
|
||||
wxArrayString colours( nColours, kColourStrings );
|
||||
auto colours = LocalizedStrings( kColourStrings, nColours );
|
||||
|
||||
S.AddSpace(0, 5);
|
||||
|
||||
|
@@ -123,10 +123,10 @@ bool SetTrackCommand::DefineParams( ShuttleParams & S ){
|
||||
|
||||
void SetTrackCommand::PopulateOrExchange(ShuttleGui & S)
|
||||
{
|
||||
wxArrayString colours( nColours, kColourStrings );
|
||||
wxArrayString displays( nDisplayTypes, kDisplayTypeStrings );
|
||||
wxArrayString scales( nScaleTypes, kScaleTypeStrings );
|
||||
wxArrayString vzooms( nZoomTypes, kZoomTypeStrings );
|
||||
auto colours = LocalizedStrings( kColourStrings, nColours );
|
||||
auto displays = LocalizedStrings( kDisplayTypeStrings, nDisplayTypes );
|
||||
auto scales = LocalizedStrings( kScaleTypeStrings, nScaleTypes );
|
||||
auto vzooms = LocalizedStrings( kZoomTypeStrings, nZoomTypes );
|
||||
|
||||
S.AddSpace(0, 5);
|
||||
|
||||
|
Reference in New Issue
Block a user