mirror of
https://github.com/cookiengineer/audacity
synced 2025-11-23 17:30:17 +01:00
More consistent naming conventions for choice control items...
... This commit leaves at least a comment for all choice controls of all
built-in effects and commands.
Use CamelCase with no spaces for the internal identifiers, given in
wxT("...")
Use more idiomatic English with spaces in the user-visible names, given in
XO("..."); these strings go to the message catalog for internationalization
Do not use underscores
In case these strings are the same, give it just once in XO("..."), but if in
a future version it is decided to change the name in XO("..."), then the
original should be kept also in a distinct wxT("...") string, so that
saved configuration or plugin settings or macro files don't become gratuitously
incompatible just because of that user-visible name change.
Left TruncateSilence alone for now -- I think that choice demands a rewrite
as a slider instead.
This commit is contained in:
@@ -238,10 +238,10 @@ enum kColours
|
||||
|
||||
static const IdentInterfaceSymbol kColourStrings[nColours] =
|
||||
{
|
||||
{ XO("Color0") },
|
||||
{ XO("Color1") },
|
||||
{ XO("Color2") },
|
||||
{ XO("Color3") },
|
||||
{ wxT("Color0"), XO("Color 0") },
|
||||
{ wxT("Color1"), XO("Color 1") },
|
||||
{ wxT("Color2"), XO("Color 2") },
|
||||
{ wxT("Color3"), XO("Color 3") },
|
||||
};
|
||||
|
||||
|
||||
@@ -254,6 +254,7 @@ enum kDisplayTypes
|
||||
|
||||
static const IdentInterfaceSymbol kDisplayTypeStrings[nDisplayTypes] =
|
||||
{
|
||||
// These are acceptable dual purpose internal/visible names
|
||||
{ XO("Waveform") },
|
||||
{ XO("Spectrogram") },
|
||||
};
|
||||
@@ -267,7 +268,9 @@ enum kScaleTypes
|
||||
|
||||
static const IdentInterfaceSymbol kScaleTypeStrings[nScaleTypes] =
|
||||
{
|
||||
// These are acceptable dual purpose internal/visible names
|
||||
{ XO("Linear") },
|
||||
/* i18n-hint: abbreviates decibels */
|
||||
{ XO("dB") },
|
||||
};
|
||||
|
||||
@@ -282,7 +285,7 @@ enum kZoomTypes
|
||||
static const IdentInterfaceSymbol kZoomTypeStrings[nZoomTypes] =
|
||||
{
|
||||
{ XO("Reset") },
|
||||
{ XO("Times2") },
|
||||
{ wxT("Times2"), XO("Times 2") },
|
||||
{ XO("HalfWave") },
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user