]> git.saurik.com Git - wxWidgets.git/blobdiff - src/common/intl.cpp
remove run-time check for now-required GTK 2.4
[wxWidgets.git] / src / common / intl.cpp
index 97cb520a397b9eec5f633b859419c6512d36672f..40d6fa1db5b73720507786742641b009962b7fa1 100644 (file)
@@ -1033,7 +1033,14 @@ wxLocale::~wxLocale()
 bool wxLocale::IsAvailable(int lang)
 {
     const wxLanguageInfo *info = wxLocale::GetLanguageInfo(lang);
-    wxCHECK_MSG( info, false, wxS("invalid language") );
+    if ( !info )
+    {
+        // The language is unknown (this normally only happens when we're
+        // passed wxLANGUAGE_DEFAULT), so we can't support it.
+        wxASSERT_MSG( lang == wxLANGUAGE_DEFAULT,
+                      wxS("No info for a valid language?") );
+        return false;
+    }
 
 #if defined(__WIN32__)
     if ( !info->WinLang )