Compile‐time literal string that can be translated with an optional translation function.
Synopsis
Declared in <util/translation.h>
struct TranslatedLiteral;
Member Functions
Name |
Description |
|
Capture a string literal and the translation function to use for it. |
Convert to a bilingual_str holding both the original and translated text. |
|
Convert to a std::string, applying the translation function when set. |
Data Members
Name |
Description |
The untranslated (English) literal text. |
|
Pointer to the translation function to apply, or null for no translation. |
Non-Member Functions
Name |
Description |
Prepend a translated literal to a value of the right operand's type. |
|
Translation marker macro helper: return the literal unchanged at compile time. |
Created with MrDocs