From: ShadowNinja Date: Sat, 28 Mar 2015 02:10:08 +0000 (-0400) Subject: Fix GetText translation loading X-Git-Tag: 0.4.13~424 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=5659434d3286634dcf96c0ce503ec5367b140f6b;p=oweals%2Fminetest.git Fix GetText translation loading --- 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