summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/client.cpp10
1 files changed, 9 insertions, 1 deletions
diff --git a/src/client.cpp b/src/client.cpp
index 1ae9185e2..fe3723ef3 100644
--- a/src/client.cpp
+++ b/src/client.cpp
@@ -359,9 +359,17 @@ void Client::gameInit()
#endif
char *locale = setlocale(LC_MESSAGES, lang.c_str());
if (locale)
+ {
logger->log("locale: %s", locale);
+ }
else
- logger->log("locale empty");
+ {
+ locale = setlocale(LC_MESSAGES, (lang + ".utf8").c_str());
+ if (locale)
+ logger->log("locale: %s", locale);
+ else
+ logger->log("locale empty");
+ }
bind_textdomain_codeset("manaplus", "UTF-8");
textdomain("manaplus");
#endif