Module i18n_build::gettext_impl
source · Expand description
This module contains the implementation for localizing using the
gettext
localization system.
Functions
- Run the gettext i18n build process for the provided crate. The crate must have an i18n config containing a gettext config.
- Run the gettext utils
msgcat
command to concatinate pot files into a single pot file. - Run the gettext
msgfmt
command to compile thepo
files into binarymo
files. - Run the gettext
msginit
command to create a newpo
file. - Run the gettext
msgmerge
command to update thepo
files with new/deleted messages from the sourcepot
files. - Run the
xtr
command (https://crates.io/crates/xtr/) in order to extract the translateable strings from the crate.