XII Release 0.1.0
Loading...
Searching...
No Matches
xiiTranslatorLogMissing Class Reference

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>

Inheritance diagram for xiiTranslatorLogMissing:
[legend]

Public Member Functions

virtual xiiStringView Translate (xiiStringView sString, xiiUInt64 uiStringHash, xiiTranslationUsage usage) override
 Returns the translated string for uiStringHash, or nullptr, if not available.
 
- Public Member Functions inherited from xiiTranslatorStorage
virtual void StoreTranslation (xiiStringView sString, xiiUInt64 uiStringHash, xiiTranslationUsage usage)
 Stores sString 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 xiiTranslator
static void ReloadAllTranslators ()
 Will call Reload() on all currently active translators.
 
static void HighlightUntranslated (bool bHighlight)
 
static bool GetHighlightUntranslated ()
 
- Protected Attributes inherited from xiiTranslatorStorage
xiiMap< xiiUInt64, xiiStringm_Translations [(xiiInt32) xiiTranslationUsage::ENUM_COUNT]
 

Detailed Description

Outputs a 'Missing Translation' warning the first time a string translation is requested. Otherwise always returns nullptr, allowing the next translator to take over.

Member Function Documentation

◆ Translate()

xiiStringView xiiTranslatorLogMissing::Translate ( xiiStringView sString,
xiiUInt64 uiStringHash,
xiiTranslationUsage usage )
overridevirtual

Returns the translated string for uiStringHash, or nullptr, if not available.

Reimplemented from xiiTranslatorStorage.


The documentation for this class was generated from the following files: