i18n: define dummy ngettext if i18n is disabled.

We cannot blindly use gettext function and not define them when not using gettext.
This commit is contained in:
Stefan Kost 2010-03-11 10:14:05 +02:00
parent 59bf16352b
commit 4ba031a7e2
2 changed files with 2 additions and 0 deletions

View file

@ -36,6 +36,7 @@
#define _(String) String #define _(String) String
#define N_(String) String #define N_(String) String
#define ngettext(Singular,Plural,Count) ((Count>1)?Plural:Singular)
#endif #endif

View file

@ -39,6 +39,7 @@
#else #else
#define _(String) String #define _(String) String
#define N_(String) String #define N_(String) String
#define ngettext(Singular,Plural,Count) ((Count>1)?Plural:Singular)
#endif #endif