1
0
mirror of https://github.com/cookiengineer/audacity synced 2025-06-21 14:50:06 +02:00

Generate msgid and msgid_plural in .pot for wxPLURAL macro

This commit is contained in:
Paul Licameli 2017-09-10 09:58:01 -04:00
parent ec5f9d6b66
commit f6b5d8e651
2 changed files with 2 additions and 1 deletions

View File

@ -8,7 +8,7 @@ subdir = po
top_builddir = ..
# These options get passed to xgettext.
XGETTEXT_OPTIONS = --keyword=_ --keyword=N_ --keyword=XO --add-comments=" i18n"
XGETTEXT_OPTIONS = --keyword=_ --keyword=N_ --keyword=XO --keyword=wxPLURAL:1,2 --add-comments=" i18n"
# This is the copyright holder that gets inserted into the header of the
# $(DOMAIN).pot file. Set this to the copyright holder of the surrounding

View File

@ -215,6 +215,7 @@ extern const wxString& GetCustomSubstitution(const wxString& str1 );
#undef wxPLURAL
#endif
// Note: The strings will go to the .pot file (do not use _(...)).
#define wxPLURAL(sing, plur, n) wxGetTranslation((sing), (plur), n)