summaryrefslogtreecommitdiff
path: root/src/gettext.cpp
diff options
context:
space:
mode:
authorsfan5 <sfan5@live.de>2015-04-26 22:24:48 +0200
committersfan5 <sfan5@live.de>2015-04-27 16:24:49 +0200
commit558d715bf62b000c9b10b44a0e3591ed4e669fa5 (patch)
tree0af3b864b553ec876a956797d3097829ef4f6986 /src/gettext.cpp
parent415167b228dea8b4108d7fe164c7fec8c061dcf5 (diff)
downloadminetest-558d715bf62b000c9b10b44a0e3591ed4e669fa5.tar.gz
minetest-558d715bf62b000c9b10b44a0e3591ed4e669fa5.tar.bz2
minetest-558d715bf62b000c9b10b44a0e3591ed4e669fa5.zip
Revert "Only lowercase project name at compile time"
This reverts commit 3be9787e64362b8a5020746220c65abbe31f8097.
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