Compile-time literal string that can be translated with an optional translation function.
Declared in <util/translation.h>
struct TranslatedLiteral;
| Name | Description |
|---|---|
TranslatedLiteral [constructor] | Capture a string literal and the translation function to use for it. |
operator bilingual_str | Convert to a bilingual_str holding both the original and translated text. |
operator std::string | Convert to a std::string, applying the translation function when set. |
| Name | Description |
|---|---|
original | The untranslated (English) literal text. |
translate_fn | Pointer to the translation function to apply, or null for no translation. |