[#util-TranslatedLiteral-2constructor] = xref:util.adoc[util]::xref:util/TranslatedLiteral.adoc[TranslatedLiteral]::TranslatedLiteral :relfileprefix: ../../ :mrdocs: Capture a string literal and the translation function to use for it. == Synopsis Declared in `<util/translation.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- consteval TranslatedLiteral( char const* str, xref:TranslateFn.adoc[TranslateFn] const* fn = &G_TRANSLATION_FUN); ---- == Parameters [cols="1,4"] |=== | Name| Description | *str* | The untranslated literal text (must not be null). | *fn* | The translation function to apply, defaulting to the global one. |=== [.small]#Created with https://www.mrdocs.com[MrDocs]#