gettextrsFunction pgettext
source pub fn pgettext<T, U>(msgctxt: T, msgid: U) -> String
Expand description
Translate msgid to localized message from the default domain (with context support).
§Panics
Panics if:
msgctxt
or msgid
contain an internal 0 byte, as such values can’t be passed to the
underlying C API;
- the result is not in UTF-8 (see this note).