+ const wxString loc = parser.GetParam();
+ const wxLanguageInfo * const lang = wxLocale::FindLanguageInfo(loc);
+ if ( !lang )
+ {
+ wxLogError(_("Locale \"%s\" is unknown."), loc);
+ return false;
+ }
+
+ m_lang = wx_static_cast(wxLanguage, lang->Language);