gettext is an internationalization and localization (i18n and l10n) system commonly used for writing multilingual programs on Unix-like computer operating systems. See documentation
- The Core Planners: [email protected]
Binary package
Binary packages can be set as runtime or build time dependencies. See Defining your dependencies for more information.
To add core/gettext as a dependency, you can add one of the following to your plan file.
pkg_build_deps=(core/gettext)
pkg_deps=(core/gettext)
To install this plan, you should run the following commands to first install, and then link the binaries this plan creates.
hab pkg install core/gettext --binlink
will add the following binaries to the PATH:
- /bin/autopoint
- /bin/envsubst
- /bin/gettext
- /bin/gettext.sh
- /bin/gettextize
- /bin/msgattrib
- /bin/msgcat
- /bin/msgcmp
- /bin/msgcomm
- /bin/msgconv
- /bin/msgen
- /bin/msgexec
- /bin/msgfilter
- /bin/msgfmt
- /bin/msggrep
- /bin/msginit
- /bin/msgmerge
- /bin/msgunfmt
- /bin/msguniq
- /bin/ngettext
- /bin/recode-sr-latin
- /bin/xgettext
For example:
$ hab pkg install core/gettext --binlink
» Installing core/gettext
☁ Determining latest version of core/gettext in the 'stable' channel
→ Found newer installed version (core/gettext/0.20.1/20200603163144) than remote version (core/gettext/0.20.1/20200306001518)
→ Using core/gettext/0.20.1/20200603163144
★ Install of core/gettext/0.20.1/20200603163144 complete with 0 new packages installed.
» Binlinking msgfilter from core/gettext/0.20.1/20200603163144 into /bin
★ Binlinked msgfilter from core/gettext/0.20.1/20200603163144 to /bin/msgfilter
» Binlinking msgcmp from core/gettext/0.20.1/20200603163144 into /bin
★ Binlinked msgcmp from core/gettext/0.20.1/20200603163144 to /bin/msgcmp
» Binlinking msgattrib from core/gettext/0.20.1/20200603163144 into /bin
★ Binlinked msgattrib from core/gettext/0.20.1/20200603163144 to /bin/msgattrib
» Binlinking gettextize from core/gettext/0.20.1/20200603163144 into /bin
★ Binlinked gettextize from core/gettext/0.20.1/20200603163144 to /bin/gettextize
» Binlinking msgmerge from core/gettext/0.20.1/20200603163144 into /bin
★ Binlinked msgmerge from core/gettext/0.20.1/20200603163144 to /bin/msgmerge
» Binlinking envsubst from core/gettext/0.20.1/20200603163144 into /bin
★ Binlinked envsubst from core/gettext/0.20.1/20200603163144 to /bin/envsubst
» Binlinking gettext from core/gettext/0.20.1/20200603163144 into /bin
★ Binlinked gettext from core/gettext/0.20.1/20200603163144 to /bin/gettext
» Binlinking msginit from core/gettext/0.20.1/20200603163144 into /bin
★ Binlinked msginit from core/gettext/0.20.1/20200603163144 to /bin/msginit
» Binlinking xgettext from core/gettext/0.20.1/20200603163144 into /bin
★ Binlinked xgettext from core/gettext/0.20.1/20200603163144 to /bin/xgettext
» Binlinking msgexec from core/gettext/0.20.1/20200603163144 into /bin
★ Binlinked msgexec from core/gettext/0.20.1/20200603163144 to /bin/msgexec
» Binlinking msgcat from core/gettext/0.20.1/20200603163144 into /bin
★ Binlinked msgcat from core/gettext/0.20.1/20200603163144 to /bin/msgcat
» Binlinking gettext.sh from core/gettext/0.20.1/20200603163144 into /bin
★ Binlinked gettext.sh from core/gettext/0.20.1/20200603163144 to /bin/gettext.sh
» Binlinking msgfmt from core/gettext/0.20.1/20200603163144 into /bin
★ Binlinked msgfmt from core/gettext/0.20.1/20200603163144 to /bin/msgfmt
» Binlinking recode-sr-latin from core/gettext/0.20.1/20200603163144 into /bin
★ Binlinked recode-sr-latin from core/gettext/0.20.1/20200603163144 to /bin/recode-sr-latin
» Binlinking msguniq from core/gettext/0.20.1/20200603163144 into /bin
★ Binlinked msguniq from core/gettext/0.20.1/20200603163144 to /bin/msguniq
» Binlinking ngettext from core/gettext/0.20.1/20200603163144 into /bin
★ Binlinked ngettext from core/gettext/0.20.1/20200603163144 to /bin/ngettext
» Binlinking msgcomm from core/gettext/0.20.1/20200603163144 into /bin
★ Binlinked msgcomm from core/gettext/0.20.1/20200603163144 to /bin/msgcomm
» Binlinking msgen from core/gettext/0.20.1/20200603163144 into /bin
★ Binlinked msgen from core/gettext/0.20.1/20200603163144 to /bin/msgen
» Binlinking autopoint from core/gettext/0.20.1/20200603163144 into /bin
★ Binlinked autopoint from core/gettext/0.20.1/20200603163144 to /bin/autopoint
» Binlinking msgconv from core/gettext/0.20.1/20200603163144 into /bin
★ Binlinked msgconv from core/gettext/0.20.1/20200603163144 to /bin/msgconv
» Binlinking msggrep from core/gettext/0.20.1/20200603163144 into /bin
★ Binlinked msggrep from core/gettext/0.20.1/20200603163144 to /bin/msggrep
» Binlinking msgunfmt from core/gettext/0.20.1/20200603163144 into /bin
★ Binlinked msgunfmt from core/gettext/0.20.1/20200603163144 to /bin/msgunfmt
You can now use the binary as normal. For example:
/bin/gettext --help
or gettext --help
$ gettext --help
Usage: gettext [OPTION] [[TEXTDOMAIN] MSGID]
or: gettext [OPTION] -s [MSGID]...
Display native language translation of a textual message.
-d, --domain=TEXTDOMAIN retrieve translated messages from TEXTDOMAIN
-c, --context=CONTEXT specify context for MSGID
...
...