Plasma Engine  2.0
Loading...
Searching...
No Matches
plTranslator Class Referenceabstract

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

#include <TranslationLookup.h>

Inheritance diagram for plTranslator:

Public Member Functions

virtual plStringView Translate (plStringView sString, plUInt64 uiStringHash, plTranslationUsage 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 plTranslator::Reload ( )
virtual

May reload the known translations.

Reimplemented in plTranslatorFromFiles, and plTranslatorStorage.

◆ Reset()

void plTranslator::Reset ( )
virtual

Called to reset internal state.

Reimplemented in plTranslatorStorage.

◆ Translate()

virtual plStringView plTranslator::Translate ( plStringView sString,
plUInt64 uiStringHash,
plTranslationUsage usage )
pure virtual

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

Implemented in plTranslatorFromFiles, plTranslatorLogMissing, plTranslatorMakeMoreReadable, plTranslatorPassThrough, and plTranslatorStorage.


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