Function gettextrs::dcngettext[][src]

pub fn dcngettext<T, U, V>(
    domainname: T,
    msgid: U,
    msgid_plural: V,
    n: u32,
    category: LocaleCategory
) -> String where
    T: Into<String>,
    U: Into<String>,
    V: Into<String>, 

Translate msgid to localized message from the specified domain using custom locale category (with plural support).

For more information, see dcngettext(3).

Panics

Panics if:

  • domainname, 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).