_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))
|
void MyFrame::OnAbout(wxCommandEvent& WXUNUSED(event))
|
||||||
{
|
{
|
||||||
wxString localeInfo;
|
wxString localeInfo;
|
||||||
#if 0
|
wxString locale = m_locale.GetLocale();
|
||||||
localeInfo.Printf( _("Language: %s\nSystem locale name: %s\nCanonical locale name: %s\n"),
|
wxString sysname = m_locale.GetSysName();
|
||||||
m_locale.GetLocale(),
|
wxString canname = m_locale.GetCanonicalName();
|
||||||
m_locale.GetSysName().c_str(),
|
|
||||||
m_locale.GetCanonicalName().c_str() );
|
|
||||||
#endif
|
|
||||||
|
|
||||||
localeInfo.Printf( _("Language: %s\nCanonical locale name: %s\n"),
|
localeInfo.Printf( _("Language: %s\nSystem locale name: %s\nCanonical locale name: %s\n"),
|
||||||
m_locale.GetLocale(),
|
locale.c_str(), sysname.c_str(), canname.c_str() );
|
||||||
m_locale.GetCanonicalName().c_str() );
|
|
||||||
|
|
||||||
wxMessageDialog(this, wxString(_("I18n sample\n(c) 1998, 1999 Vadim Zeitlin and Julian Smart"))
|
wxMessageDialog(this, wxString(_("I18n sample\n(c) 1998, 1999 Vadim Zeitlin and Julian Smart"))
|
||||||
+ wxT("\n\n") + localeInfo,
|
+ wxT("\n\n") + localeInfo,
|
||||||
|
Reference in New Issue
Block a user