mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-23 14:19:46 -06:00
DolphinWX: Set C++ locale
After3a83ebc
, the Show System Clock feature started using the unfortunate combination of MM/DD/YY dates (rare outside of the US) and 24-hour time (rare in the US) regardless of the user's locale settings. This commit makes it use the configured locale again. I've noticed one minor difference in behavior between now and before3a83ebc
: The new way of setting the C/C++ locale seems to treat "en" as "en-US", but the wx way of setting the C locale treated it as "en-GB" (at least on Windows).
This commit is contained in:
@ -343,6 +343,9 @@ void DolphinApp::InitLanguageSupport()
|
||||
_("Error"));
|
||||
m_locale.reset(new wxLocale(wxLANGUAGE_DEFAULT));
|
||||
}
|
||||
|
||||
// wxWidgets sets the C locale for us, but not the C++ locale, so let's do that ourselves
|
||||
UICommon::SetLocale(language_code);
|
||||
}
|
||||
|
||||
void DolphinApp::OnEndSession(wxCloseEvent& event)
|
||||
|
Reference in New Issue
Block a user