pcsx2:gui:wx3: wrong order of language in wizard

It seems wx3 remove all non alphanumeric character before the sorting
A 0 was added to force default to be the first choice as expected
This commit is contained in:
Gregory Hainaut 2014-12-06 17:09:58 +01:00
parent 7328e55ee9
commit 8afd2edd1d
1 changed files with 8 additions and 1 deletions

View File

@ -59,7 +59,14 @@ LangPackEnumeration::LangPackEnumeration( wxLanguage langId )
LangPackEnumeration::LangPackEnumeration()
{
wxLangId = wxLANGUAGE_DEFAULT;
englishName = L" System Default"; // left-side space forces it to sort to the front of the lists
#if wxMAJOR_VERSION < 3
englishName = L"_System Default"; // left-side space forces it to sort to the front of the lists
#else
// It seems wx change its sort algo... It seems non alphanumeric character are removed
englishName = L"0) System Default"; // left-side 0) forces it to sort to the front of the lists
// This one can work too
//englishName = L"A default";
#endif
englishName += _(" (default)");
canonicalName = L"default";