From 5e7604bc2208ab090b8f394f0e618346e04bedaa Mon Sep 17 00:00:00 2001 From: Robin Dunn Date: Thu, 20 Feb 2003 19:32:33 +0000 Subject: [PATCH] Added missing Init method (renamed to InitLang) to wxLocale wrapper. git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_4_BRANCH@19272 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- wxPython/src/fonts.i | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/wxPython/src/fonts.i b/wxPython/src/fonts.i index 89b37cc3e8..884cce3f3b 100644 --- a/wxPython/src/fonts.i +++ b/wxPython/src/fonts.i @@ -443,7 +443,9 @@ public: enum wxLanguage { + // user's default/preffered language as got from OS: wxLANGUAGE_DEFAULT, + // unknown language, if wxLocale::GetSystemLanguage fails: wxLANGUAGE_UNKNOWN, wxLANGUAGE_ABKHAZIAN, @@ -722,16 +724,19 @@ public: wxLocale(int language = wxLANGUAGE_DEFAULT, int flags = wxLOCALE_LOAD_DEFAULT | wxLOCALE_CONV_ENCODING); - // the same as a function (returns TRUE on success) bool Init(const wxString& szName, const wxString& szShort = wxPyEmptyString, const wxString& szLocale = wxPyEmptyString, bool bLoadDefault = TRUE, bool bConvertEncoding = FALSE); + %name(InitLang) bool Init(int language = wxLANGUAGE_DEFAULT, + int flags = wxLOCALE_LOAD_DEFAULT | wxLOCALE_CONV_ENCODING); + // restores old locale ~wxLocale(); + // Try to get user's (or OS's) prefered language setting. // Return wxLANGUAGE_UNKNOWN if language-guessing algorithm failed static int GetSystemLanguage();