From 48e7f51f577660e465f38b6b16421762bd6e2f01 Mon Sep 17 00:00:00 2001 From: Miriam Ruiz Date: Sun, 30 Nov 2008 22:57:10 +0100 Subject: [PATCH] Make the game compilable without gettext --- i18n.h | 14 +++++++++++--- 1 file changed, 11 insertions(+), 3 deletions(-) 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 -- 2.11.4.GIT