From 29890cc253fc9230ec815433f1f5a923998c9439 Mon Sep 17 00:00:00 2001 From: Socapex Date: Tue, 4 Dec 2012 16:32:01 -0500 Subject: Fixed interface localization. --- src/client.cpp | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'src') diff --git a/src/client.cpp b/src/client.cpp index 1265d048f..c1fde21d2 100644 --- a/src/client.cpp +++ b/src/client.cpp @@ -347,10 +347,15 @@ void Client::gameInit() #ifdef ENABLE_PORTABLE 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) -- cgit v1.2.3-60-g2f50