wx.TranslationsLoader¶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.
Added in version 2.9.1.
See also
wx.FileTranslationsLoader, ResourceTranslationsLoader
 Class Hierarchy¶
Inheritance diagram for class TranslationsLoader:
 Known Subclasses¶wx.FileTranslationsLoader, ResourceTranslationsLoader
 Methods Summary¶Trivial default constructor.  | 
|
Implements   | 
|
Called to load requested catalog.  | 
 Class API¶Possible constructors:
TranslationsLoader() -> None
Abstraction of translations discovery and loading.
Trivial default constructor.
None
Implements wx.Translations.GetAvailableTranslations .
domain (string)
List[str]
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.
domain (string) – Domain to load.
lang (string) – Language to look for. This is “canonical name” (see wx.Locale.GetCanonicalName ), i.e. ISO 639 code, possibly combined with country code or additional modifiers (e.g. “fr”, “en_GB” or “ca@valencia”).
MsgCatalog
Loaded catalog or None on failure.