XII Release 0.1.0
Loading...
Searching...
No Matches
xiiTranslator Class Referenceabstract

Base class to translate one string into another. More...

#include <TranslationLookup.h>

Inheritance diagram for xiiTranslator:
[legend]

Public Member Functions

virtual xiiStringView Translate (xiiStringView sString, xiiUInt64 uiStringHash, xiiTranslationUsage usage)=0
 The given string (with the given hash) shall be translated.
 
virtual void Reset ()
 Called to reset internal state.
 
virtual void Reload ()
 May reload the known translations.
 

Static Public Member Functions

static void ReloadAllTranslators ()
 Will call Reload() on all currently active translators.
 
static void HighlightUntranslated (bool bHighlight)
 
static bool GetHighlightUntranslated ()
 

Detailed Description

Base class to translate one string into another.

Member Function Documentation

◆ Reload()

void xiiTranslator::Reload ( )
virtual

May reload the known translations.

Reimplemented in xiiTranslatorFromFiles, and xiiTranslatorStorage.

◆ Reset()

void xiiTranslator::Reset ( )
virtual

Called to reset internal state.

Reimplemented in xiiTranslatorStorage.

◆ Translate()

virtual xiiStringView xiiTranslator::Translate ( xiiStringView sString,
xiiUInt64 uiStringHash,
xiiTranslationUsage usage )
pure virtual

The given string (with the given hash) shall be translated.

Implemented in xiiTranslatorFromFiles, xiiTranslatorLogMissing, xiiTranslatorMakeMoreReadable, xiiTranslatorPassThrough, and xiiTranslatorStorage.


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