diff options
author | Robin Gareus <robin@gareus.org> | 2015-10-25 17:46:39 +0100 |
---|---|---|
committer | Robin Gareus <robin@gareus.org> | 2015-10-25 17:46:39 +0100 |
commit | 8ab69cba583190b0d76b3623e5df4e63bbb5d6f8 (patch) | |
tree | 43060bc2e80e8a356c66b50dd6ff9eb95b36cbde /libs/ardour/i18n.h | |
parent | 7c24957d308a2f4014bda978f552c1a10d98d05b (diff) |
properly translatable plural forms
Diffstat (limited to 'libs/ardour/i18n.h')
-rw-r--r-- | libs/ardour/i18n.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/libs/ardour/i18n.h b/libs/ardour/i18n.h index 43ae07cac1..b04c96d435 100644 --- a/libs/ardour/i18n.h +++ b/libs/ardour/i18n.h @@ -17,4 +17,8 @@ */ #define S_(Text) PBD::sgettext (PACKAGE, Text) +/** Use this to translate strings with plural forms + */ +#define P_(Singular,Plural,HowMany) dngettext (PACKAGE, (Singular), (Plural), (HowMany)) + #endif // __i18n_h__ |