diff options
Diffstat (limited to 'games')
-rw-r--r-- | games/wesnoth/files/patch-src-gettext.cpp | 15 | ||||
-rw-r--r-- | games/wesnoth/files/patch-src-gettext.hpp | 25 |
2 files changed, 0 insertions, 40 deletions
diff --git a/games/wesnoth/files/patch-src-gettext.cpp b/games/wesnoth/files/patch-src-gettext.cpp index 23fa486a23b1..5efa34c5afe9 100644 --- a/games/wesnoth/files/patch-src-gettext.cpp +++ b/games/wesnoth/files/patch-src-gettext.cpp @@ -13,18 +13,3 @@ char const *egettext(char const *msgid) { return msgid[0] == '\0' ? msgid : gettext(msgid); ---- src/gettext.cpp~ -+++ src/gettext.cpp -@@ -18,6 +18,12 @@ - - #include <cstring> - -+#ifndef ENABLE_NLS -+char *textdomain (const char *domainname) { -+ return "dummy"; -+} -+#endif -+ - char const *egettext(char const *msgid) - { - return msgid[0] == '\0' ? msgid : gettext(msgid); diff --git a/games/wesnoth/files/patch-src-gettext.hpp b/games/wesnoth/files/patch-src-gettext.hpp index 51cd88141e04..887c18dbcc51 100644 --- a/games/wesnoth/files/patch-src-gettext.hpp +++ b/games/wesnoth/files/patch-src-gettext.hpp @@ -23,28 +23,3 @@ const char* egettext(const char*); const char* sgettext(const char*); ---- src/gettext.hpp~ -+++ src/gettext.hpp -@@ -35,7 +35,21 @@ - - // gettext-related declarations - --#include <libintl.h> -+#include "wesconfig.h" -+ -+#ifdef ENABLE_NLS -+# include <libintl.h> -+#else -+# define bind_textdomain_codeset(Domain,Codeset) "C" -+# define bindtextdomain(Domain,Dir) "/nonexistent" -+# define gettext(String) gettext_noop(String) -+# define ngettext(String1,String2,Int) gettext_noop(Int == 1 ? String1 : String2) -+# define dgettext(Domain,String) gettext_noop(String) -+# define dngettext(Domain,String1,String2,Int) gettext_noop(Int == 1 ? String1 : String2) -+# define dcgettext(Domain,String,Int) gettext_noop(String) -+# define dcngettext(Domain,String1,String2,Int1,Int2) gettext_noop(Int1 == 1 ? String1 : String2) -+char *textdomain (const char *domainname); -+#endif - - const char* egettext(const char*); - const char* sgettext(const char*); |