summaryrefslogtreecommitdiff
path: root/src/gettext.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/gettext.cpp')
-rw-r--r--src/gettext.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/gettext.cpp b/src/gettext.cpp
index 85455ad3c..509d506d4 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_LOWER, path);
- textdomain(PROJECT_NAME_LOWER);
+ static std::string name = lowercase(PROJECT_NAME);
+ bindtextdomain(name.c_str(), path);
+ textdomain(name.c_str());
#if defined(_WIN32)
// Set character encoding for Win32