X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/976266244ca03b71f434c4b4e41b9903a1955121..924fe7dabe68c324b6e5005bbe1c4119447867f3:/src/common/intl.cpp diff --git a/src/common/intl.cpp b/src/common/intl.cpp index 6f974e5e4b..317cc06e04 100644 --- a/src/common/intl.cpp +++ b/src/common/intl.cpp @@ -2339,6 +2339,11 @@ const wxLanguageInfo *wxLocale::GetLanguageInfo(int lang) { CreateLanguagesDB(); + // calling GetLanguageInfo(wxLANGUAGE_DEFAULT) is a natural thing to do, so + // make it work + if ( lang == wxLANGUAGE_DEFAULT ) + lang = GetSystemLanguage(); + const size_t count = ms_languagesDB->GetCount(); for ( size_t i = 0; i < count; i++ ) {