summaryrefslogtreecommitdiff
path: root/src/client.cpp
diff options
context:
space:
mode:
authorSocapex <philippe_groarke@yahoo.ca>2012-12-04 16:32:01 -0500
committerAndrei Karas <akaras@inbox.ru>2012-12-05 00:53:10 +0300
commit29890cc253fc9230ec815433f1f5a923998c9439 (patch)
treefd875116d435cc8d10dfdeb5db67e7986164bbf8 /src/client.cpp
parent6232cad8c5f1aee0df1acafd4d2b2a1f050bcf3e (diff)
downloadmv-29890cc253fc9230ec815433f1f5a923998c9439.tar.gz
mv-29890cc253fc9230ec815433f1f5a923998c9439.tar.bz2
mv-29890cc253fc9230ec815433f1f5a923998c9439.tar.xz
mv-29890cc253fc9230ec815433f1f5a923998c9439.zip
Fixed interface localization.
Diffstat (limited to 'src/client.cpp')
-rw-r--r--src/client.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/client.cpp b/src/client.cpp
index 1265d048f..c1fde21d2 100644
--- a/src/client.cpp
+++ b/src/client.cpp
@@ -348,10 +348,15 @@ void Client::gameInit()
bindTextDomain("manaplus", (std::string(PHYSFS_getBaseDir())
+ "../locale/").c_str());
#else
+#ifdef __APPLE__
+ //TODO: Use physfs instead of absolute path.
+ bindTextDomain("manaplus", "ManaPlus.app/Contents/Resources/locale/");
+#else
bindTextDomain("manaplus", LOCALEDIR);
#endif
#endif
#endif
+#endif
char *locale = setlocale(LC_MESSAGES, lang.c_str());
if (locale)
logger->log("locale: %s", locale);