replace wxLANGUAGE_DEFAULT with GetSystemLanguage() result in GetLanguageInfo()

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@28218 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Vadim Zeitlin
2004-07-12 22:22:31 +00:00
parent 93a15cf1c3
commit f0ab09ccd0
2 changed files with 32 additions and 0 deletions

View File

@@ -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++ )
{