![]() |
XII Release 0.1.0
|
Can store translated strings and all translation requests will come from that storage. Returns nullptr if the requested string is not known. More...
#include <TranslationLookup.h>
Public Member Functions | |
| virtual void | StoreTranslation (xiiStringView sString, xiiUInt64 uiStringHash, xiiTranslationUsage usage) |
| Stores sString as the translation for the string with the given hash. | |
| virtual xiiStringView | Translate (xiiStringView sString, xiiUInt64 uiStringHash, xiiTranslationUsage usage) override |
| Returns the translated string for uiStringHash, or nullptr, if not available. | |
| virtual void | Reset () override |
| Clears all stored translation strings. | |
| virtual void | Reload () override |
| Simply executes Reset() on this translator. | |
Protected Attributes | |
| xiiMap< xiiUInt64, xiiString > | m_Translations [(xiiInt32) xiiTranslationUsage::ENUM_COUNT] |
Additional Inherited Members | |
Static Public Member Functions inherited from xiiTranslator | |
| static void | ReloadAllTranslators () |
| Will call Reload() on all currently active translators. | |
| static void | HighlightUntranslated (bool bHighlight) |
| static bool | GetHighlightUntranslated () |
Can store translated strings and all translation requests will come from that storage. Returns nullptr if the requested string is not known.
|
overridevirtual |
Simply executes Reset() on this translator.
Reimplemented from xiiTranslator.
Reimplemented in xiiTranslatorFromFiles.
|
overridevirtual |
Clears all stored translation strings.
Reimplemented from xiiTranslator.
|
overridevirtual |
Returns the translated string for uiStringHash, or nullptr, if not available.
Implements xiiTranslator.
Reimplemented in xiiTranslatorFromFiles, xiiTranslatorLogMissing, and xiiTranslatorMakeMoreReadable.