1
0
mirror of https://github.com/cookiengineer/audacity synced 2025-10-26 15:23:48 +01:00

Define Internat::Parenthesize, for good of right-to-left languages

This commit is contained in:
Paul Licameli
2016-06-05 12:32:43 -04:00
parent 59c3482798
commit de8d0e9918
2 changed files with 11 additions and 0 deletions

View File

@@ -229,3 +229,12 @@ wxString Internat::StripAccelerators(const wxString &s)
} }
return result; return result;
} }
wxString Internat::Parenthesize(const wxString &str)
{
/* i18n-hint: An opening parenthesis, in some languages a right parenthesis */
auto open = _("(");
/* i18n-hint: A closing parenthesis, in some languages a left parenthesis */
auto close = _(")");
return open + str + close;
}

View File

@@ -73,6 +73,8 @@ public:
* when they aren't, saving translators effort. */ * when they aren't, saving translators effort. */
static wxString StripAccelerators(const wxString& str); static wxString StripAccelerators(const wxString& str);
static wxString Parenthesize(const wxString &str);
private: private:
static wxChar mDecimalSeparator; static wxChar mDecimalSeparator;