Abstraction of translations discovery and loading.
This interface makes it possible to override wxWidgets’ default catalogs loading mechanism and load MO files from locations other than the filesystem (e.g. embed them in executable).
Implementations must implement the LoadCatalog method.
New in version 2.9.1.
See also
FileTranslationsLoader, ResourceTranslationsLoader
__init__ | Trivial default constructor. |
GetAvailableTranslations | Implements Translations.GetAvailableTranslations . |
LoadCatalog | Called to load requested catalog. |
Abstraction of translations discovery and loading.
Possible constructors:
TranslationsLoader()
Trivial default constructor.
Implements Translations.GetAvailableTranslations .
Parameters: | domain (string) – |
---|---|
Return type: | list of strings |
Called to load requested catalog.
If the catalog is found, LoadCatalog should create MsgCatalog instance with its data and return it. The caller will take ownership of the catalog.
Parameters: |
|
---|---|
Return type: | MsgCatalog |
Returns: | Loaded catalog or None on failure. |