// Initialize the catalogs we'll be using
const wxLanguageInfo* pInfo = wxLocale::GetLanguageInfo(m_lang);
if (!m_locale.AddCatalog("internat"))
+ {
wxLogError(_("Couldn't find/load the 'internat' catalog for locale '%s'."),
pInfo ? pInfo->GetLocaleName() : _("unknown"));
+ }
// Now try to add wxstd.mo so that loading "NOTEXIST.ING" file will produce
// a localized error message:
}
else if ( num == 9 )
{
- // this message is not translated (not in catalog) because we used _T()
+ // this message is not translated (not in catalog) because we used wxT()
// and not _() around it
- str = _T("You've found a bug in this program!");
+ str = wxT("You've found a bug in this program!");
}
else if ( num == 17 )
{
}
if ( wxLocale::IsAvailable(info->Language) )
+ {
wxLogMessage(_("Locale \"%s\" is available."), s_locale.c_str());
+ }
else
+ {
wxLogWarning(_("Locale \"%s\" is not available."), s_locale.c_str());
+ }
}
void MyFrame::OnOpen(wxCommandEvent& WXUNUSED(event))