New macro XXC is like XXO but with a context (and really same as XC)

This commit is contained in:
Paul Licameli 2020-05-28 16:04:36 -04:00
parent c3a2eb043f
commit 7325e6839e
2 changed files with 4 additions and 1 deletions

View File

@ -5,7 +5,7 @@ sed -E 's/\.\.\///g' |\
xargs xgettext \
--default-domain=audacity \
--directory=.. \
--keyword=_ --keyword=XO --keyword=XC:1,2c --keyword=XXO --keyword=XP:1,2 --keyword=XPC:1,2,4c \
--keyword=_ --keyword=XO --keyword=XC:1,2c --keyword=XXO --keyword-XXC:1,2c --keyword=XP:1,2 --keyword=XPC:1,2,4c \
--add-comments=" i18n" \
--add-location=file \
--copyright-holder='Audacity Team' \

View File

@ -45,6 +45,9 @@ extern AUDACITY_DLL_API const wxString& GetCustomSubstitution(const wxString& st
// might use the & character for shortcuts.
#define XXO(s) XO(s)
// Corresponds to XC as XXO does to XO
#define XXC(s, c) XC(s, c)
#ifdef _
#undef _
#endif