X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/969daeea660b2b85391309d927d496e0926d4246..3a6ec3c88033c43e108cb1f302717696682eb34f:/interface/wx/intl.h diff --git a/interface/wx/intl.h b/interface/wx/intl.h index 5339b0617d..a4def9c77f 100644 --- a/interface/wx/intl.h +++ b/interface/wx/intl.h @@ -341,7 +341,7 @@ struct WXDLLIMPEXP_BASE wxLanguageInfo @library{wxbase} @category{misc} - @see @ref overview_internationalization, @ref page_samples_internat, wxXLocale + @see @ref overview_i18n, @ref page_samples_internat, wxXLocale */ class wxLocale { @@ -520,8 +520,8 @@ public: @remarks Domains are searched in the last to first order, i.e. catalogs added later override those added before. */ - const wxString& GetString(const wxString& origString, - const wxString& domain = wxEmptyString) const; + virtual const wxString& GetString(const wxString& origString, + const wxString& domain = wxEmptyString) const; /** Retrieves the translation for a string in all loaded domains unless the @a domain @@ -550,10 +550,9 @@ public: @remarks Domains are searched in the last to first order, i.e. catalogs added later override those added before. */ - const wxString& GetString(const wxString& origString, - const wxString& origString2, - size_t n, - const wxString& domain = wxEmptyString) const; + virtual const wxString& GetString(const wxString& origString, + const wxString& origString2, size_t n, + const wxString& domain = wxEmptyString) const; /** Returns current platform-specific locale name as passed to setlocale(). @@ -611,6 +610,16 @@ public: iso8859-2 and windows-1250. See @ref overview_nonenglish for detailed description of this behaviour. Note that this flag is meaningless in Unicode build. + + @return @true on success or @false if the given locale couldn't be set. + */ + bool Init(int language = wxLANGUAGE_DEFAULT, + int flags = wxLOCALE_LOAD_DEFAULT | wxLOCALE_CONV_ENCODING); + + /** + @deprecated + This form is deprecated, use the other one unless you know what you are doing. + @param name The name of the locale. Only used in diagnostic messages. @param short @@ -629,20 +638,9 @@ public: between well-known pair like iso8859-1 and windows-1252 or iso8859-2 and windows-1250. See @ref overview_nonenglish for detailed description of this behaviour. - - @return @true on success or @false if the given locale couldn't be set. - */ - bool Init(int language = wxLANGUAGE_DEFAULT, - int flags = wxLOCALE_LOAD_DEFAULT | wxLOCALE_CONV_ENCODING); - - /** - @deprecated - This form is deprecated, use the other one unless you know what you are doing. */ - bool Init(const wxString& name, - const wxString& short = wxEmptyString, - const wxString& locale = wxEmptyString, - bool bLoadDefault = true, + bool Init(const wxString& name, const wxString& short = wxEmptyString, + const wxString& locale = wxEmptyString, bool bLoadDefault = true, bool bConvertEncoding = false); /** @@ -668,7 +666,7 @@ public: @see AddCatalog() */ - bool IsLoaded(const char* domain) const; + bool IsLoaded(const wxString& domain) const; /** Returns @true if the locale could be set successfully.