Macro tr::tr_init[][src]

macro_rules! tr_init {
    ($path:expr) => { ... };
}

Initialize the translation for a crate, using gettext's bindtextdomain

The macro should be called to specify the path in which the .mo files can be looked for. The argument is the string passed to bindtextdomain

The alternative is to call the set_translator! macro

This macro is available only if the feature "gettext-rs" is enabled