API Documentation
|
Any text displayed to the user should be defined as a TranslatedString which allows the program to look up a translation, if available. More...
#include <TranslatedString.h>
Protected Member Functions | |
void | calculateEnglishString () |
Protected Attributes | |
String | m_english_string |
bool | m_is_translated |
Dictionary< String, TranslatedString * > | m_replacements |
String | m_translation |
String | m_translation_id |
Any text displayed to the user should be defined as a TranslatedString which allows the program to look up a translation, if available.
TranslatedString | ( | ) |
|
inline |
TranslatedString | ( | const TranslatedString & | translation | ) |
|
noexcept |
|
explicit |
|
explicit |
TranslatedString | ( | const String & | translation_id, |
const String & | english ) |
|
protected |
const String & englishTranslation | ( | ) | const |
bool hasReplacements | ( | ) | const |
String internalValue | ( | ) | const |
bool isEmpty | ( | ) | const |
bool isTranslatable | ( | ) | const |
bool operator!= | ( | const TranslatedString & | translation | ) | const |
bool operator< | ( | const TranslatedString & | value | ) | const |
|
noexcept |
|
noexcept |
bool operator== | ( | const TranslatedString & | translation | ) | const |
bool operator> | ( | const TranslatedString & | value | ) | const |
TranslatedString & replace | ( | const String & | sub_string, |
const String & | replacement ) |
TranslatedString & replace | ( | const String & | sub_string, |
const TranslatedString & | replacement ) |
void retranslate | ( | ) |
const String & translation | ( | ) | const |
const String & translationID | ( | ) | const |
|
mutableprotected |
|
mutableprotected |
|
protected |
|
mutableprotected |
|
mutableprotected |