Function gettextrs::gettext[][src]

pub fn gettext<T: Into<String>>(msgid: T) -> String

Translate msgid to localized message from the default domain.

For more information, see gettext(3).

Panics

Panics if:

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