1
0
mirror of https://github.com/cookiengineer/audacity synced 2025-12-15 17:11:20 +01:00

Separate plugin accessors for translated and unstranslated strings...

... because I want to make a type distinction later.

Replace calls to GetXXX() without argument, with GetTranslatedXXX() --
this reveals a subtle error, see next commit.
This commit is contained in:
Paul Licameli
2017-10-03 09:02:22 -04:00
parent 91b0e82c11
commit cafbff9ff8
3 changed files with 65 additions and 47 deletions

View File

@@ -63,10 +63,13 @@ public:
const wxString & GetSymbol() const;
wxString GetUntranslatedVersion() const;
// There is no translated version
// These return translated strings (if available and if requested)
wxString GetName(bool translate = true) const;
wxString GetVendor(bool translate = true) const;
wxString GetUntranslatedName() const;
wxString GetTranslatedName() const;
wxString GetUntranslatedVendor() const;
wxString GetTranslatedVendor() const;
bool IsEnabled() const;
bool IsValid() const;
@@ -87,8 +90,8 @@ public:
// Effect plugins only
// Will return an untranslated string
wxString GetEffectFamily(bool translate = true) const;
wxString GetUntranslatedEffectFamily() const;
wxString GetTranslatedEffectFamily() const;
EffectType GetEffectType() const;
bool IsEffectDefault() const;
bool IsEffectInteractive() const;