A translator object used for parsing and indexing localisation strings found in ".mo" binary files. These objects are available through the CYITranslation interface and should be primarily loaded through the CYIAssetLoader, which will provide a CYIAssetTranslation object.
#include <utility/YiMOTranslator.h>
Public Member Functions | |
CYIMOTranslator () | |
virtual | ~CYIMOTranslator () |
virtual bool | LoadTranslation (const CYIString &filename) override |
virtual bool | LoadTranslation (const uint8_t *pData, size_t dataSize) override |
virtual CYIString | Translate (const CYIString &text) override |
![]() | |
CYITranslator () | |
virtual | ~CYITranslator () |
CYIMOTranslator::CYIMOTranslator | ( | ) |
|
virtual |
|
overridevirtual |
Load the ".mo" translation file using the absolute location provided by filename. This function will return true if successful.
Implements CYITranslator.
|
overridevirtual |
Loads a ".mo" translation file from memory. This function will return true if successful.
Implements CYITranslator.
Using the localised translation key text, which is typically the original English text, it will find and return the matching localised text.
Implements CYITranslator.