aboutsummaryrefslogtreecommitdiffstats
path: root/common/i18n.h
diff options
context:
space:
mode:
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*/