gettextrs

Function dgettext

source
pub fn dgettext<T, U>(domainname: T, msgid: U) -> String
where T: Into<String>, U: Into<String>,
Expand description

Translate msgid to localized message from the specified domain.

For more information, see dgettext(3).

§Panics

Panics if:

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