mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-01-29 12:32:47 +00:00
Fixes translation on Linux and potentially Mac OSX, by specifying location of *.gmo files
This commit is contained in:
parent
3948dc77c7
commit
cc22151495
@ -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");
|
||||
|
Loading…
x
Reference in New Issue
Block a user