Skip to content

Commit

Permalink
Changes to Spectrogram color scheme user-visible strings because of s…
Browse files Browse the repository at this point in the history
…tring freeze
  • Loading branch information
dofuuz authored and Paul-Licameli committed Jun 15, 2021
1 parent e9f0590 commit 060885c
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 20 deletions.
11 changes: 0 additions & 11 deletions libraries/lib-strings/FutureStrings.h
Expand Up @@ -111,17 +111,6 @@ XO("Unknown error"),
XO("Failed to send crash report"),


// i18n-hint Scheme refers to a color scheme for spectrogram colors
XC("Sche&me", "spectrum prefs"),
// i18n-hint Choice of spectrogram colors
XC("Color (default)", "spectrum prefs"),
// i18n-hint Choice of spectrogram colors
XC("Color (classic)", "spectrum prefs"),
// i18n-hint Choice of spectrogram colors
XC("Grayscale", "spectrum prefs"),
// i18n-hint Choice of spectrogram colors
XC("Inverse grayscale", "spectrum prefs"),

// Update version dialog
XC("Update Audacity", "update dialog"),
XC("&Skip", "update dialog"),
Expand Down
2 changes: 1 addition & 1 deletion src/commands/SetTrackInfoCommand.cpp
Expand Up @@ -364,7 +364,7 @@ void SetTrackVisualsCommand::PopulateOrExchange(ShuttleGui & S)
{
S.SetStretchyCol( 2 );
auto schemes = SpectrogramSettings::GetColorSchemeNames();
S.Optional( bHasSpecColorScheme).TieChoice( XXO("Spectro. Color scheme:"), mSpecColorScheme,
S.Optional( bHasSpecColorScheme).TieChoice( XC("Sche&me", "spectrum prefs"), mSpecColorScheme,
Msgids( schemes.data(), schemes.size() ) );
}
S.EndMultiColumn();
Expand Down
14 changes: 7 additions & 7 deletions src/prefs/SpectrogramSettings.cpp
Expand Up @@ -161,13 +161,13 @@ const EnumValueSymbols &SpectrogramSettings::GetColorSchemeNames()
static const EnumValueSymbols result{
// Keep in correspondence with enum SpectrogramSettings::ColorScheme:
/* i18n-hint: New color scheme for spectrograms */
{ wxT("SpecColorNew"), XO("Color (New)") },
/* i18n-hint: color scheme from theme for spectrograms */
{ wxT("SpecColorTheme"), XO("Color (from Theme)") },
/* i18n-hint: grayscale color scheme for spectrograms */
{ wxT("SpecGrayscale"), XO("Grayscale") },
/* i18n-hint: inverse grayscale color scheme for spectrograms */
{ wxT("SpecInvGrayscale"), XO("Inv. Grayscale") },
{ wxT("SpecColorNew"), XC("Color (default)", "spectrum prefs") },
/* i18n-hint: Classic color scheme(from theme) for spectrograms */
{ wxT("SpecColorTheme"), XC("Color (classic)", "spectrum prefs") },
/* i18n-hint: Grayscale color scheme for spectrograms */
{ wxT("SpecGrayscale"), XC("Grayscale", "spectrum prefs") },
/* i18n-hint: Inverse grayscale color scheme for spectrograms */
{ wxT("SpecInvGrayscale"), XC("Inverse grayscale", "spectrum prefs") },
};

wxASSERT(csNumColorScheme == result.size());
Expand Down
3 changes: 2 additions & 1 deletion src/prefs/SpectrumPrefs.cpp
Expand Up @@ -224,7 +224,8 @@ void SpectrumPrefs::PopulateOrExchange(ShuttleGui & S)
mTempSettings.frequencyGain,
8);

S.Id(ID_COLOR_SCHEME).TieChoice(XXO("Color Sche&me:"),
// i18n-hint Scheme refers to a color scheme for spectrogram colors
S.Id(ID_COLOR_SCHEME).TieChoice(XC("Sche&me", "spectrum prefs"),
(int&)mTempSettings.colorScheme,
Msgids( SpectrogramSettings::GetColorSchemeNames() ) );
}
Expand Down

0 comments on commit 060885c

Please sign in to comment.