Skip to content

Commit

Permalink
basic i18n support
Browse files Browse the repository at this point in the history
  • Loading branch information
guanlisheng committed Sep 2, 2014
1 parent d1bb4ea commit 5e690f2
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/wxsqliteplusapp.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -137,6 +137,9 @@ END_EVENT_TABLE()
/*---------------------------------------------------------------------------*/
wxSQLitePlusApp::wxSQLitePlusApp()
{
m_lang = wxLANGUAGE_UNKNOWN;
m_locale.Init(m_lang, wxLOCALE_DONT_LOAD_DEFAULT);
m_locale.AddCatalog("wxstd");
}
/*---------------------------------------------------------------------------*/
bool wxSQLitePlusApp::OnInit()
Expand Down
3 changes: 3 additions & 0 deletions src/wxsqliteplusapp.h
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,9 @@ class wxSQLitePlusApp: public wxApp
void SetStyleColourBack(int index, wxColour value);
void SetStyleCase(int index, int value);

protected:
wxLanguage m_lang;
wxLocale m_locale;
private:

wxSingleInstanceChecker* m_checker;
Expand Down

0 comments on commit 5e690f2

Please sign in to comment.