Fix GetText translation loading

master
ShadowNinja 2015-03-27 22:10:08 -04:00
parent 30075467b8
commit 5659434d32
1 changed files with 3 additions and 2 deletions

View 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