From 8afd2edd1d00bb6846ad0959fe8500582897b4da Mon Sep 17 00:00:00 2001 From: Gregory Hainaut Date: Sat, 6 Dec 2014 17:09:58 +0100 Subject: [PATCH] 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 --- pcsx2/gui/i18n.cpp | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/pcsx2/gui/i18n.cpp b/pcsx2/gui/i18n.cpp index 6361f2238b..c41f3245a5 100644 --- a/pcsx2/gui/i18n.cpp +++ b/pcsx2/gui/i18n.cpp @@ -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";