Function gettextrs::dgettext[][src]

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

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