summaryrefslogtreecommitdiff
path: root/src/client.cpp
diff options
context:
space:
mode:
authorSocapex <philippe_groarke@yahoo.ca>2012-12-29 00:49:30 -0500
committerSocapex <philippe_groarke@yahoo.ca>2012-12-29 09:33:25 -0500
commita295ce54bbd7fcc0d4befd0bfaa2312aea9b602c (patch)
tree86ca33d6bc7fed6f628b535277a09784deb5c7ad /src/client.cpp
parent1ccaf38633d828e1a04a7d82e26334d236197057 (diff)
downloadplus-a295ce54bbd7fcc0d4befd0bfaa2312aea9b602c.tar.gz
plus-a295ce54bbd7fcc0d4befd0bfaa2312aea9b602c.tar.bz2
plus-a295ce54bbd7fcc0d4befd0bfaa2312aea9b602c.tar.xz
plus-a295ce54bbd7fcc0d4befd0bfaa2312aea9b602c.zip
Use physfs for locale folder on OS X.
Diffstat (limited to 'src/client.cpp')
-rw-r--r--src/client.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/client.cpp b/src/client.cpp
index fe3723ef3..b7442a1bc 100644
--- a/src/client.cpp
+++ b/src/client.cpp
@@ -350,7 +350,8 @@ void Client::gameInit()
#else
#ifdef __APPLE__
//TODO: Use physfs instead of absolute path.
- bindTextDomain("manaplus", "ManaPlus.app/Contents/Resources/locale/");
+ bindTextDomain("manaplus", (std::string(PHYSFS_getBaseDir())
+ + "ManaPlus.app/Contents/Resources/locale/").c_str());
#else
bindTextDomain("manaplus", LOCALEDIR);
#endif