From 5659434d3286634dcf96c0ce503ec5367b140f6b Mon Sep 17 00:00:00 2001 From: ShadowNinja Date: Fri, 27 Mar 2015 22:10:08 -0400 Subject: [PATCH] Fix GetText translation loading --- src/gettext.cpp | 5 +++-- 1 file 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 -- 2.25.1