diff options
| author | rukai <rubickent@gmail.com> | 2015-06-21 13:34:09 +1000 |
|---|---|---|
| committer | rukai <rubickent@gmail.com> | 2015-06-21 20:41:41 +1000 |
| commit | cc221514954a26cd293d29c93d013357ccf552a1 (patch) | |
| tree | bc942e9c48b5294a7a7e85892b5761440d4fb15d /Source/Core/DolphinWX/Main.cpp | |
| parent | 3948dc77c73136d7a828c161d2fc4f9c9b180760 (diff) | |
Fixes translation on Linux and potentially Mac OSX, by specifying location of *.gmo files
Diffstat (limited to 'Source/Core/DolphinWX/Main.cpp')
| -rw-r--r-- | Source/Core/DolphinWX/Main.cpp | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/Source/Core/DolphinWX/Main.cpp b/Source/Core/DolphinWX/Main.cpp index 64912416d8..97585fc85e 100644 --- a/Source/Core/DolphinWX/Main.cpp +++ b/Source/Core/DolphinWX/Main.cpp @@ -332,8 +332,13 @@ void DolphinApp::InitLanguageSupport() { m_locale = new wxLocale(language); + // Specify where dolphins *.gmo files are located on each operating system #ifdef _WIN32 - m_locale->AddCatalogLookupPathPrefix(StrToWxStr(File::GetExeDirectory() + DIR_SEP "Languages")); + m_locale->AddCatalogLookupPathPrefix(StrToWxStr(File::GetExeDirectory() + DIR_SEP "Languages")); +#elif defined(__LINUX__) + m_locale->AddCatalogLookupPathPrefix(StrToWxStr(DATA_DIR "../locale")); +#elif defined(__APPLE__) + m_locale->AddCatalogLookupPathPrefix(StrToWxStr(GetBundleDirectory() + "Contents/Resources")); #endif m_locale->AddCatalog("dolphin-emu"); |
