From: Miriam Ruiz Date: Sun, 30 Nov 2008 21:57:10 +0000 (+0100) Subject: Make the game compilable without gettext X-Git-Url: https://repo.or.cz/w/hex-a-hop.git/commitdiff_plain/48e7f51f577660e465f38b6b16421762bd6e2f01 Make the game compilable without gettext --- diff --git a/i18n.h b/i18n.h index c3d1b8a..80a7707 100644 --- a/i18n.h +++ b/i18n.h @@ -32,12 +32,20 @@ class GetTextInit const char *GetEncoding() const; }; -static GetTextInit gettext_init; - #else -#define _(String) String +#define _(String) (String) +#define gettext(String) (String) +#define ngettext(Singular,Plural,Number) (Number!=1?Plural:Singular) + +class GetTextInit +{ + public: + const char *GetEncoding() const { return ""; } +}; #endif +static GetTextInit gettext_init; + #endif