mirror of
https://github.com/cookiengineer/audacity
synced 2025-10-26 15:23:48 +01:00
Rewrites of TranslatableString and reimplementation of wxPLURAL...
... including move-construction of the base string, debug string formatting, and contexts (not fully implemented)
This commit is contained in:
@@ -78,7 +78,12 @@ extern AUDACITY_DLL_API const wxString& GetCustomSubstitution(const wxString& st
|
||||
//
|
||||
// Your i18n-comment should therefore say something like,
|
||||
// "In the string after this one, ..."
|
||||
#define wxPLURAL(sing, plur, n) wxGetTranslation( wxT(sing), wxT(plur), n)
|
||||
//
|
||||
// The macro call is then followed by a sequence of format arguments in
|
||||
// parentheses. The third argument of the macro call is the zero-based index
|
||||
// of the format argument that selects singular or plural
|
||||
#define wxPLURAL(sing, plur, n) \
|
||||
TranslatableString{ wxT(sing), {} }.Plural<(n)>( wxT(plur) )
|
||||
|
||||
#endif
|
||||
|
||||
|
||||
Reference in New Issue
Block a user