diff options
author | Philipp Sehmisch <crush@themanaworld.org> | 2009-01-27 04:01:50 +0100 |
---|---|---|
committer | Philipp Sehmisch <crush@themanaworld.org> | 2009-01-27 14:21:17 +0100 |
commit | a8bf33d851c88107a4673ef6fc97b303efb537d8 (patch) | |
tree | 9d87a83a04259521483d8fdbddee5be67dca314a /src/main.cpp | |
parent | 0346ea5d2d4ce9eee4941b907b9868f631a73fd2 (diff) | |
download | mana-a8bf33d851c88107a4673ef6fc97b303efb537d8.tar.gz mana-a8bf33d851c88107a4673ef6fc97b303efb537d8.tar.bz2 mana-a8bf33d851c88107a4673ef6fc97b303efb537d8.tar.xz mana-a8bf33d851c88107a4673ef6fc97b303efb537d8.zip |
Enabled gettext translations on windows.
Diffstat (limited to 'src/main.cpp')
-rw-r--r-- | src/main.cpp | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/src/main.cpp b/src/main.cpp index 0291fd86..051840f1 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -219,7 +219,7 @@ void init_engine(const Options &options) GetLastError() != ERROR_ALREADY_EXISTS) #elif defined __APPLE__ // Use Application Directory instead of .tmw - homeDir = std::string(PHYSFS_getUserDir()) + + homeDir = std::string(PHYSFS_getUserDir()) + "/Library/Application Support/The Mana World"; if ((mkdir(homeDir.c_str(), S_IRWXU | S_IRWXG | S_IROTH | S_IXOTH) != 0) && (errno != EEXIST)) @@ -672,9 +672,12 @@ int main(int argc, char *argv[]) #if ENABLE_NLS #ifdef WIN32 putenv(("LANG=" + std::string(_nl_locale_name_default())).c_str()); + // mingw doesn't like LOCALEDIR to be defined for some reason + bindtextdomain("tmw", "translations/"); +#else + bindtextdomain("tmw", LOCALEDIR); #endif setlocale(LC_MESSAGES, ""); - bindtextdomain("tmw", LOCALEDIR); bind_textdomain_codeset("tmw", "UTF-8"); textdomain("tmw"); #endif |