649 B
649 B
gettext
Translates a string using stored translations in a compiled
.mofile. Translations are stored in/usr/share/locale/<locale_name>/LC_MESSAGES/withdomainbeing the filename without its extension. See also:msgfmt,msgunfmt. More information: https://www.gnu.org/software/gettext/manual/html_node/gettext-Invocation.html.
- Get the translation of a string as specified in the domain file (falls back to given
msgidif no translation exists):
LANGUAGE={{locale}} gettext {{[-d|--domain]}} {{domain}} "{{msgid}}"
- Display help:
gettext {{[-h|--help]}}
- Display gettext version:
gettext {{[-V|--version]}}