aboutsummaryrefslogtreecommitdiffstats
path: root/common/i18n.h
diff options
context:
space:
mode:
authorWerner Koch <[email protected]>2007-05-04 09:22:18 +0000
committerWerner Koch <[email protected]>2007-05-04 09:22:18 +0000
commit3c351d0232d39e8496bd6a06abf0640896352aea (patch)
treeafafa3eea6f93b7e78ec302749d097c3448a371f /common/i18n.h
parent* packet.h, mainproc.c (reset_literals_seen): New function to reset (diff)
downloadgnupg-3c351d0232d39e8496bd6a06abf0640896352aea.tar.gz
gnupg-3c351d0232d39e8496bd6a06abf0640896352aea.zip
UTF-8 Fixes
Diffstat (limited to 'common/i18n.h')
-rw-r--r--common/i18n.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/common/i18n.h b/common/i18n.h
index 6881a8a61..56c00abf6 100644
--- a/common/i18n.h
+++ b/common/i18n.h
@@ -17,6 +17,8 @@
#ifdef USE_SIMPLE_GETTEXT
int set_gettext_file( const char *filename );
const char *gettext( const char *msgid );
+ const char *ngettext(const char *msgid1, const char *msgid2,
+ unsigned long int n);
# define _(a) gettext (a)
# define N_(a) (a)
#else
@@ -34,6 +36,7 @@
# else
# define _(a) (a)
# define N_(a) (a)
+# define ngettext(a,b,c) ((c)==1? (a):(b))
# endif
#endif /*!USE_SIMPLE_GETTEXT*/