![]() |
Plasma Engine
2.0
|
Outputs a 'Missing Translation' warning the first time a string translation is requested. Otherwise always returns nullptr, allowing the next translator to take over. More...
#include <TranslationLookup.h>

Public Member Functions | |
| virtual plStringView | Translate (plStringView sString, plUInt64 uiStringHash, plTranslationUsage usage) override |
| Returns the translated string for uiStringHash, or nullptr, if not available. | |
Public Member Functions inherited from plTranslatorStorage | |
| virtual void | StoreTranslation (plStringView sString, plUInt64 uiStringHash, plTranslationUsage usage) |
| Stores szString as the translation for the string with the given hash. | |
| virtual void | Reset () override |
| Clears all stored translation strings. | |
| virtual void | Reload () override |
| Simply executes Reset() on this translator. | |
Static Public Attributes | |
| static bool | s_bActive = true |
| Can be used from external code to (temporarily) deactivate error logging (a bit hacky) | |
Additional Inherited Members | |
Static Public Member Functions inherited from plTranslator | |
| static void | ReloadAllTranslators () |
| Will call Reload() on all currently active translators. | |
| static void | HighlightUntranslated (bool bHighlight) |
| static bool | GetHighlightUntranslated () |
Protected Attributes inherited from plTranslatorStorage | |
| plMap< plUInt64, plString > | m_Translations [(int) plTranslationUsage::ENUM_COUNT] |
Outputs a 'Missing Translation' warning the first time a string translation is requested. Otherwise always returns nullptr, allowing the next translator to take over.
|
overridevirtual |
Returns the translated string for uiStringHash, or nullptr, if not available.
Reimplemented from plTranslatorStorage.