gettextrs

Function dngettext

source
pub fn dngettext<T, U, V>(
    domainname: T,
    msgid: U,
    msgid_plural: V,
    n: u32,
) -> String
where T: Into<String>, U: Into<String>, V: Into<String>,
Expand description

Translate msgid to localized message from the specified domain (with plural support).

For more information, see dngettext(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).