Fix GetText translation loading
authorShadowNinja <shadowninja@minetest.net>
Sat, 28 Mar 2015 02:10:08 +0000 (22:10 -0400)
committerShadowNinja <shadowninja@minetest.net>
Sat, 28 Mar 2015 02:10:08 +0000 (22:10 -0400)
src/gettext.cpp

index fc7569418a9105ab3ddac30f88bad74fa5bbbddc..20453b9147d7c2854127876693828f2d8ac7115e 100644 (file)
@@ -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