Function gettextrs::pgettext[][src]

pub fn pgettext<T, U>(msgctxt: T, msgid: U) -> String where
    T: Into<String>,
    U: Into<String>, 

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).