X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/5e3062291922189a215b81a0ae4fc4022ace597b..438959cca892a7651634cc3a7aad4819ac49b23c:/include/wx/translation.h diff --git a/include/wx/translation.h b/include/wx/translation.h index 67b2bd8afc..c12ae52046 100644 --- a/include/wx/translation.h +++ b/include/wx/translation.h @@ -132,6 +132,11 @@ public: // get languages available for this app wxArrayString GetAvailableTranslations(const wxString& domain) const; + // find best translation language for given domain + wxString GetBestTranslation(const wxString& domain, wxLanguage msgIdLanguage); + wxString GetBestTranslation(const wxString& domain, + const wxString& msgIdLanguage = "en"); + // add standard wxWidgets catalog ("wxstd") bool AddStdCatalog(); @@ -168,10 +173,6 @@ private: // perform loading of the catalog via m_loader bool LoadCatalog(const wxString& domain, const wxString& lang); - // find best translation for given domain - wxString ChooseLanguageForDomain(const wxString& domain, - const wxString& msgIdLang); - // find catalog by name in a linked list, return NULL if !found wxMsgCatalog *FindCatalog(const wxString& domain) const;