gettextrs

Function ngettext

source
pub fn ngettext<T, S>(msgid: T, msgid_plural: S, n: u32) -> String
where T: Into<String>, S: Into<String>,
Expand description

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

For more information, see ngettext(3).

§Panics

Panics if:

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