summaryrefslogtreecommitdiff
path: root/src/gettext.cpp
diff options
context:
space:
mode:
authorShadowNinja <shadowninja@minetest.net>2015-04-21 11:09:44 -0400
committerShadowNinja <shadowninja@minetest.net>2015-04-21 20:51:16 -0400
commit3be9787e64362b8a5020746220c65abbe31f8097 (patch)
treeaa41625eb4557899ebb4d6d68e36c6b9864ca9a7 /src/gettext.cpp
parente0eec201a18a0741114094b600f765313a838bfb (diff)
downloadminetest-3be9787e64362b8a5020746220c65abbe31f8097.tar.gz
minetest-3be9787e64362b8a5020746220c65abbe31f8097.tar.bz2
minetest-3be9787e64362b8a5020746220c65abbe31f8097.zip
Only lowercase project name at compile time
Diffstat (limited to 'src/gettext.cpp')
-rw-r--r--src/gettext.cpp5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/gettext.cpp b/src/gettext.cpp
index 509d506d4..85455ad3c 100644
--- a/src/gettext.cpp
+++ b/src/gettext.cpp
@@ -236,9 +236,8 @@ void init_gettext(const char *path, const std::string &configured_language) {
#endif
#endif
- static std::string name = lowercase(PROJECT_NAME);
- bindtextdomain(name.c_str(), path);
- textdomain(name.c_str());
+ bindtextdomain(PROJECT_NAME_LOWER, path);
+ textdomain(PROJECT_NAME_LOWER);
#if defined(_WIN32)
// Set character encoding for Win32