e i18n: add a new macro (NP_) to mark plural strings for translation.

SVN revision: 74547
This commit is contained in:
Chidambar Zinnoury 2012-07-29 17:06:19 +00:00
parent 8470559f18
commit 5c5fef141a
2 changed files with 4 additions and 2 deletions

View File

@ -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

View File

@ -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;