mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-02-11 18:41:02 +00:00
Merge pull request #2639 from rukai/master
Translations fix for Linux & Mac OS X
This commit is contained in:
commit
6d2631a173
@ -334,8 +334,13 @@ void DolphinApp::InitLanguageSupport()
|
|||||||
{
|
{
|
||||||
m_locale = new wxLocale(language);
|
m_locale = new wxLocale(language);
|
||||||
|
|
||||||
|
// Specify where dolphins *.gmo files are located on each operating system
|
||||||
#ifdef _WIN32
|
#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(File::GetBundleDirectory() + "Contents/Resources"));
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
m_locale->AddCatalog("dolphin-emu");
|
m_locale->AddCatalog("dolphin-emu");
|
||||||
|
Loading…
x
Reference in New Issue
Block a user