util::TranslatedLiteral::TranslatedLiteral

Capture a string literal and the translation function to use for it.

Synopsis

Declared in <util/translation.h>

consteval
TranslatedLiteral(
    char const* str,
    TranslateFn const* fn = &G_TRANSLATION_FUN);

Parameters

NameDescription
strThe untranslated literal text (must not be null).
fnThe translation function to apply, defaulting to the global one.