]> git.saurik.com Git - wxWidgets.git/blobdiff - src/common/intl.cpp
More COMPATIBILITY_2_4 fixes.
[wxWidgets.git] / src / common / intl.cpp
index 0d83c0db888543fc51a704a10e258123d7e35122..684c9a5f2516b0e2418017183a1642a6c51f2eb0 100644 (file)
@@ -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)
 {