Add wxTranslations::GetAvailableTranslations().

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@64597 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Václav Slavík
2010-06-16 14:09:32 +00:00
parent 6589f1a49a
commit 5e30622919
4 changed files with 171 additions and 22 deletions

View File

@@ -79,6 +79,15 @@ public:
*/
void SetLanguage(const wxString& lang);
/**
Returns list of all translations of @a domain that were found.
This method can be used e.g. to populate list of application's
translations offered to the user. To do this, pass the app's main
catalog as @a domain.
*/
wxArrayString GetAvailableTranslations(const wxString& domain) const;
/**
Add standard wxWidgets catalogs ("wxstd" and possible port-specific
catalogs).
@@ -265,6 +274,11 @@ public:
*/
virtual wxMsgCatalog *LoadCatalog(const wxString& domain,
const wxString& lang) = 0;
/**
Implements wxTranslations::GetAvailableTranslations().
*/
virtual wxArrayString GetAvailableTranslations(const wxString& domain) const = 0;
};
/**