X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/d4a724d4075418ccaea166925c33242a338249c7..58211774c81794d1408967203294af1206b29394:/wxPython/src/_intl.i?ds=sidebyside diff --git a/wxPython/src/_intl.i b/wxPython/src/_intl.i index 32b102bad9..18e7f9db0b 100644 --- a/wxPython/src/_intl.i +++ b/wxPython/src/_intl.i @@ -22,7 +22,6 @@ //--------------------------------------------------------------------------- %newgroup - enum wxLanguage { // user's default/preffered language as got from OS: @@ -419,6 +418,9 @@ public: // Returns 'True' if it was successfully loaded bool AddCatalog(const wxString& szDomain); + // check if the given locale is provided by OS and C run time + static bool IsAvailable(int lang); + // check if the given catalog is loaded bool IsLoaded(const wxString& szDomain) const; @@ -459,6 +461,13 @@ public: // Returns the current short name for the locale const wxString& GetName() const; + + %property(CanonicalName, GetCanonicalName, doc="See `GetCanonicalName`"); + %property(Language, GetLanguage, doc="See `GetLanguage`"); + %property(Locale, GetLocale, doc="See `GetLocale`"); + %property(Name, GetName, doc="See `GetName`"); + %property(String, GetString, doc="See `GetString`"); + %property(SysName, GetSysName, doc="See `GetSysName`"); }; //---------------------------------------------------------------------------