Function gettextrs::npgettext[][src]

pub fn npgettext<T, U, V>(
    msgctxt: T,
    msgid: U,
    msgid_plural: V,
    n: u32
) -> String where
    T: Into<String>,
    U: Into<String>,
    V: Into<String>, 

Translate msgid to localized message from the default domain (with plural support and context support).

Panics

Panics if:

  • msgctxt, msgid, or msgid_plural 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).