Base Framework
|
#include <base/Translation.h>
Inherits ReferenceCountedObject.
Public Member Functions | |
const String * | get (const String &text) const |
const String * | get (const String &text, const String &context) const |
void | add (const String &text, const String &translated) |
void | add (const String &text, const String &context, const String &translated) |
String | translate (const String &text) const |
String | translate (const String &text, const String &context) const |
![]() | |
ReferenceCountedObject () noexcept | |
ReferenceCountedObject (const ReferenceCountedObject ©) noexcept | |
ReferenceCountedObject (ReferenceCountedObject &&move) noexcept | |
ReferenceCountedObject & | operator= (const ReferenceCountedObject ©) noexcept |
ReferenceCountedObject & | operator= (ReferenceCountedObject &&move) noexcept |
MemorySize | getNumberOfReferences_INTERNAL () const noexcept |
virtual bool | useGarbageCollector () const noexcept |
![]() | |
DynamicObject () noexcept | |
bool | isValidObject () const noexcept |
virtual | ~DynamicObject () noexcept(false) |
_COM_AZURE_DEV__BASE__OVERRIDE_ALLOC () | |
Static Public Member Functions | |
static R< Translation > | getCurrent () |
static void | makeCurrent (R< Translation > translation) |
static void | unsetTranslation () |
Adds translation. Null-terminator should not be used for translations and will be discarded.
Adds translation. Null-terminator should not be used for translations and will be discarded.
Returns the translation for the given text. Returns nullptr if not defined.
Returns the translation for the given text. Returns nullptr if not defined.
|
static |
Returns the current translaiton.
|
static |
Makes the given translation current.
Translates the given string and context.
|
inlinestatic |
Removes the current translation.