Allow getting all usable translations languages

Add a method to return the full list of translations that can be used,
generalizing the existing GetBestTranslation().
This commit is contained in:
Lauri Nurmi
2018-10-02 19:49:50 +03:00
committed by Vadim Zeitlin
parent 4099e75edb
commit 5d08e404c7
3 changed files with 89 additions and 18 deletions

View File

@@ -145,6 +145,11 @@ public:
wxString GetBestTranslation(const wxString& domain,
const wxString& msgIdLanguage = "en");
// find best and all other suitable translation languages for given domain
wxArrayString GetAllGoodTranslations(const wxString& domain, wxLanguage msgIdLanguage);
wxArrayString GetAllGoodTranslations(const wxString& domain,
const wxString& msgIdLanguage = "en");
// add standard wxWidgets catalog ("wxstd")
bool AddStdCatalog();