gettext
all
Translates a string using stored translations in a compiled `.mo` file. Translations are stored in `/usr/share/locale/locale_name/LC_MESSAGES/` with `domain` being the filename without its extension. See also: `msgfmt`, `msgunfmt`.
More info →Options (3)
-d, --domainbooleanGet the translation of a string as specified in the domain file (falls back to given `msgid` if no translation exists)
Example:
LANGUAGE={{locale}} gettext {{[-d|--domain]}} {{domain}} "{{msgid}}"-h, --helpbooleanDisplay help
Example:
gettext {{[-h|--help]}}-V, --versionbooleanDisplay version
Example:
gettext {{[-V|--version]}}made by @shridhargupta | data from tldr-pages