Make the game compilable without gettext
authorMiriam Ruiz <miriam@debian.org>
Sun, 30 Nov 2008 21:57:10 +0000 (30 22:57 +0100)
committerMiriam Ruiz <miriam@debian.org>
Sun, 30 Nov 2008 21:57:10 +0000 (30 22:57 +0100)
i18n.h

diff --git a/i18n.h b/i18n.h
index c3d1b8a..80a7707 100644 (file)
--- 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