From f6b5d8e651915adbf55a77cf99754c5eb22e415c Mon Sep 17 00:00:00 2001 From: Paul Licameli Date: Sun, 10 Sep 2017 09:58:01 -0400 Subject: [PATCH] Generate msgid and msgid_plural in .pot for wxPLURAL macro --- locale/Makevars | 2 +- src/Audacity.h | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/locale/Makevars b/locale/Makevars index 6dc4dfaed..6778964e5 100644 --- a/locale/Makevars +++ b/locale/Makevars @@ -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 diff --git a/src/Audacity.h b/src/Audacity.h index 18851c199..e6c62546e 100644 --- a/src/Audacity.h +++ b/src/Audacity.h @@ -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)