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:
@@ -229,3 +229,12 @@ wxString Internat::StripAccelerators(const wxString &s)
|
||||
}
|
||||
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;
|
||||
}
|
||||
|
||||
@@ -73,6 +73,8 @@ public:
|
||||
* when they aren't, saving translators effort. */
|
||||
static wxString StripAccelerators(const wxString& str);
|
||||
|
||||
static wxString Parenthesize(const wxString &str);
|
||||
|
||||
private:
|
||||
static wxChar mDecimalSeparator;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user