gettextrs

Function gettext

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

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