mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-31 05:08:57 +00:00
Build mo translation files on all platforms. Had to import msgfmt executable in the Externals to do this on windows.
Save wxLanguage enumeration value in ini file so that users are not surprised when a language is added and dolphin-emu is suddenly translated in a different language. Update Spanish, Korean, and Simplified Chinese translations. git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@6804 8ced0084-cf51-0410-be5f-012b33b47a6e
This commit is contained in:
parent
601eab79e1
commit
83eed62449
35 changed files with 1680 additions and 1779 deletions
|
@ -411,32 +411,14 @@ void DolphinApp::InitLanguageSupport()
|
|||
{
|
||||
unsigned int language = 0;
|
||||
|
||||
// keep those in sync with CConfigMain::InitializeGUILists
|
||||
const wxLanguage langIds[] =
|
||||
{
|
||||
wxLANGUAGE_DEFAULT,
|
||||
wxLANGUAGE_CHINESE_SIMPLIFIED,
|
||||
wxLANGUAGE_ENGLISH,
|
||||
wxLANGUAGE_FRENCH,
|
||||
wxLANGUAGE_GERMAN,
|
||||
wxLANGUAGE_HEBREW,
|
||||
wxLANGUAGE_ITALIAN,
|
||||
wxLANGUAGE_KOREAN,
|
||||
wxLANGUAGE_NORWEGIAN_BOKMAL,
|
||||
wxLANGUAGE_POLISH,
|
||||
wxLANGUAGE_RUSSIAN,
|
||||
wxLANGUAGE_SPANISH,
|
||||
|
||||
};
|
||||
|
||||
IniFile ini;
|
||||
ini.Load(File::GetUserPath(F_DOLPHINCONFIG_IDX));
|
||||
ini.Get("Interface", "Language", &language, 0);
|
||||
ini.Get("Interface", "Language", &language, wxLANGUAGE_DEFAULT);
|
||||
|
||||
// Load language if possible, fall back to system default otherwise
|
||||
if(language >= 0 && language < sizeof(langIds) / sizeof(wxLanguage) && wxLocale::IsAvailable(langIds[language]))
|
||||
if(wxLocale::IsAvailable(language))
|
||||
{
|
||||
m_locale = new wxLocale(langIds[language]);
|
||||
m_locale = new wxLocale(language);
|
||||
|
||||
#ifdef _WIN32
|
||||
m_locale->AddCatalogLookupPathPrefix(wxT("Languages"));
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue