Revert all recent changes to wxTranslations
The latest changes to wxTranslations::AddCatalog() behaviour were not backwards-compatible and also had other problem, so revert them for now, even if this means that #18227 has to be reopened. This is a combination of the following commits: ---- Revert "Fix regression in wxTranslations::AddCatalog()" This reverts commit14e905858d
. See #18297. ---- Revert "Fix crash in translations code when no translations are found" This reverts commit80904d1bc7
. See #18299. ---- Revert "Rename new wxTranslations method to GetAcceptableTranslations()" This reverts commit20b02d6169
. ---- Revert "Load catalogs for all preferred languages, if they exist" This reverts commit2d784da2ee
. ---- Revert "Allow getting all usable translations languages" This reverts commit5d08e404c7
. ---- See #18227, #18300. Closes #18302.
This commit is contained in:
@@ -145,12 +145,6 @@ public:
|
||||
wxString GetBestTranslation(const wxString& domain,
|
||||
const wxString& msgIdLanguage = "en");
|
||||
|
||||
// find best and all other suitable translation languages for given domain
|
||||
wxArrayString GetAcceptableTranslations(const wxString& domain,
|
||||
wxLanguage msgIdLanguage);
|
||||
wxArrayString GetAcceptableTranslations(const wxString& domain,
|
||||
const wxString& msgIdLanguage = "en");
|
||||
|
||||
// add standard wxWidgets catalog ("wxstd")
|
||||
bool AddStdCatalog();
|
||||
|
||||
|
Reference in New Issue
Block a user