Gettext/sh
From Get docs
Next: bash, Previous: Ruby, Up: List of Programming Languages [Contents][Index]
15.5.12 sh - Shell Script
- RPMs
bash, gettext
- Ubuntu packages
bash, gettext-base
- File extension
sh
- String syntax
"abc"
,'abc'
,abc
- gettext shorthand
"`gettext \"abc\"`"
- gettext/ngettext functions
gettext
,ngettext
programseval_gettext
,eval_ngettext
,eval_pgettext
,eval_npgettext
shell functions- textdomain
environment variable
TEXTDOMAIN
- bindtextdomain
environment variable
TEXTDOMAINDIR
- setlocale
automatic
- Prerequisite
. gettext.sh
- Use or emulate GNU gettext
use
- Extractor
xgettext
- Formatting with positions
—
- Portability
fully portable
- po-mode marking
—
An example is available in the examples
directory: hello-sh
.
• Preparing Shell Scripts: | Preparing Shell Scripts for Internationalization | |
• gettext.sh: | Contents of gettext.sh
| |
• gettext Invocation: | Invoking the gettext program
| |
• ngettext Invocation: | Invoking the ngettext program
| |
• envsubst Invocation: | Invoking the envsubst program
| |
• eval_gettext Invocation: | Invoking the eval_gettext function
| |
• eval_ngettext Invocation: | Invoking the eval_ngettext function
| |
• eval_pgettext Invocation: | Invoking the eval_pgettext function
| |
• eval_npgettext Invocation: | Invoking the eval_npgettext function
|