diff options
author | ShadowNinja <shadowninja@minetest.net> | 2015-03-27 22:10:08 -0400 |
---|---|---|
committer | ShadowNinja <shadowninja@minetest.net> | 2015-03-27 22:10:08 -0400 |
commit | 5659434d3286634dcf96c0ce503ec5367b140f6b (patch) | |
tree | 7b6ccb7a3e9522fd6d2900abf9ca33eb065f275c | |
parent | 30075467b84c79ff21736d6c447746caef07dcd0 (diff) | |
download | minetest-5659434d3286634dcf96c0ce503ec5367b140f6b.tar.gz minetest-5659434d3286634dcf96c0ce503ec5367b140f6b.tar.bz2 minetest-5659434d3286634dcf96c0ce503ec5367b140f6b.zip |
Fix GetText translation loading
-rw-r--r-- | src/gettext.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/gettext.cpp b/src/gettext.cpp index fc7569418..20453b914 100644 --- a/src/gettext.cpp +++ b/src/gettext.cpp @@ -236,8 +236,9 @@ void init_gettext(const char *path, const std::string &configured_language) { #endif #endif - bindtextdomain(PROJECT_NAME, path); - textdomain(PROJECT_NAME); + static const char *name = lowercase(PROJECT_NAME).c_str(); + bindtextdomain(name, path); + textdomain(name); #if defined(_WIN32) // Set character encoding for Win32 |