diff options
author | Philip Paeps <philip@FreeBSD.org> | 2010-08-26 13:25:02 +0000 |
---|---|---|
committer | Philip Paeps <philip@FreeBSD.org> | 2010-08-26 13:25:02 +0000 |
commit | 8091c7366119c4bc7f6b4e92e80b883982854b4f (patch) | |
tree | 83435fb9a4242f7b1073d5e62a301fa70fd57ae2 /games/wesnoth | |
parent | d1e1053b93864dbf8ff7c5a48559be879caa5384 (diff) | |
download | ports-8091c7366119c4bc7f6b4e92e80b883982854b4f.tar.gz ports-8091c7366119c4bc7f6b4e92e80b883982854b4f.zip |
Notes
Diffstat (limited to 'games/wesnoth')
-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*); |