From 5c5fef141aed0b4cb42c3f14aeb69232df9b03cb Mon Sep 17 00:00:00 2001 From: Chidambar Zinnoury Date: Sun, 29 Jul 2012 17:06:19 +0000 Subject: [PATCH] e i18n: add a new macro (NP_) to mark plural strings for translation. SVN revision: 74547 --- po/Makevars | 3 ++- src/bin/e_intl.h | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/po/Makevars b/po/Makevars index 204167827..bdc4a6303 100644 --- a/po/Makevars +++ b/po/Makevars @@ -9,7 +9,8 @@ top_builddir = .. # These options get passed to xgettext. XGETTEXT_OPTIONS = --keyword=_ --keyword=d_:1 --keyword=P_:1,2 \ - --keyword=dP_:1,2 --keyword=N_ --from-code=UTF-8 --foreign-user + --keyword=dP_:1,2 --keyword=N_ --keyword=NP_:1,2 \ + --from-code=UTF-8 --foreign-user # 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/bin/e_intl.h b/src/bin/e_intl.h index 8887778d6..7b479dc6f 100644 --- a/src/bin/e_intl.h +++ b/src/bin/e_intl.h @@ -13,10 +13,11 @@ #define P_(str, str_p, n) (str_p) #define dP_(str, str_p, n, dom) (str_p) #endif -/* This macro is used to just mark string for translation, this is useful +/* These macros are used to just mark strings for translation, this is useful * for string lists which are not dynamically allocated */ #define N_(str) (str) +#define NP_(str, str_p) str, str_p typedef struct _E_Locale_Parts E_Locale_Parts;