_really_ fixed internat.cpp crash (?) instead of commenting the code out and hapilly forgetting about it
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_4_BRANCH@17810 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -171,16 +171,12 @@ void MyFrame::OnQuit(wxCommandEvent& WXUNUSED(event) )
|
||||
void MyFrame::OnAbout(wxCommandEvent& WXUNUSED(event))
|
||||
{
|
||||
wxString localeInfo;
|
||||
#if 0
|
||||
localeInfo.Printf( _("Language: %s\nSystem locale name: %s\nCanonical locale name: %s\n"),
|
||||
m_locale.GetLocale(),
|
||||
m_locale.GetSysName().c_str(),
|
||||
m_locale.GetCanonicalName().c_str() );
|
||||
#endif
|
||||
wxString locale = m_locale.GetLocale();
|
||||
wxString sysname = m_locale.GetSysName();
|
||||
wxString canname = m_locale.GetCanonicalName();
|
||||
|
||||
localeInfo.Printf( _("Language: %s\nCanonical locale name: %s\n"),
|
||||
m_locale.GetLocale(),
|
||||
m_locale.GetCanonicalName().c_str() );
|
||||
localeInfo.Printf( _("Language: %s\nSystem locale name: %s\nCanonical locale name: %s\n"),
|
||||
locale.c_str(), sysname.c_str(), canname.c_str() );
|
||||
|
||||
wxMessageDialog(this, wxString(_("I18n sample\n(c) 1998, 1999 Vadim Zeitlin and Julian Smart"))
|
||||
+ wxT("\n\n") + localeInfo,
|
||||
|
Reference in New Issue
Block a user