e i18n: add a new macro (NP_) to mark plural strings for translation.
SVN revision: 74547
This commit is contained in:
parent
8470559f18
commit
5c5fef141a
|
@ -9,7 +9,8 @@ top_builddir = ..
|
||||||
|
|
||||||
# These options get passed to xgettext.
|
# These options get passed to xgettext.
|
||||||
XGETTEXT_OPTIONS = --keyword=_ --keyword=d_:1 --keyword=P_:1,2 \
|
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
|
# 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
|
# $(DOMAIN).pot file. Set this to the copyright holder of the surrounding
|
||||||
|
|
|
@ -13,10 +13,11 @@
|
||||||
#define P_(str, str_p, n) (str_p)
|
#define P_(str, str_p, n) (str_p)
|
||||||
#define dP_(str, str_p, n, dom) (str_p)
|
#define dP_(str, str_p, n, dom) (str_p)
|
||||||
#endif
|
#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
|
* for string lists which are not dynamically allocated
|
||||||
*/
|
*/
|
||||||
#define N_(str) (str)
|
#define N_(str) (str)
|
||||||
|
#define NP_(str, str_p) str, str_p
|
||||||
|
|
||||||
typedef struct _E_Locale_Parts E_Locale_Parts;
|
typedef struct _E_Locale_Parts E_Locale_Parts;
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue