projects
/
oweals
/
minetest.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
3007546
)
Fix GetText translation loading
author
ShadowNinja
<shadowninja@minetest.net>
Sat, 28 Mar 2015 02:10:08 +0000
(22:10 -0400)
committer
ShadowNinja
<shadowninja@minetest.net>
Sat, 28 Mar 2015 02:10:08 +0000
(22:10 -0400)
src/gettext.cpp
patch
|
blob
|
history
diff --git
a/src/gettext.cpp
b/src/gettext.cpp
index fc7569418a9105ab3ddac30f88bad74fa5bbbddc..20453b9147d7c2854127876693828f2d8ac7115e 100644
(file)
--- 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