gettext
Translate 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/gettext.html#gettext-Invocation.
- Get the translation of a string as specified in the domain file (falls back to given
msgidif no translation exists):
LANGUAGE= gettext ""
- Display help:
gettext
- Display version:
gettext
来源:tldr-pages contributors · 作者与贡献记录 · CC BY 4.0。离线整理了版式、链接和媒体显示。
