X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/10545ca4e7bd875e07830fb17ea0b70b427bc50f..b00786ec12dfb0141d7deb6a4e2235a95a9c26f7:/src/common/intl.cpp diff --git a/src/common/intl.cpp b/src/common/intl.cpp index 0d83c0db88..684c9a5f25 100644 --- a/src/common/intl.cpp +++ b/src/common/intl.cpp @@ -1448,6 +1448,16 @@ const wxLanguageInfo *wxLocale::GetLanguageInfo(int lang) return NULL; } +/* static */ +wxString wxLocale::GetLanguageName(int lang) +{ + const wxLanguageInfo *info = GetLanguageInfo(lang); + if ( !info ) + return wxEmptyString; + else + return info->Description; +} + /* static */ const wxLanguageInfo *wxLocale::FindLanguageInfo(const wxString& locale) {