sh (GNU gettext utilities)

Next: , Previous: , Up: Individual Programming Languages [Contents][Index]


16.5.15 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 programs
eval_gettext, eval_ngettext, eval_pgettext, eval_npgettext shell functions
printf_gettext, printf_ngettext commands

textdomain

environment variable TEXTDOMAIN

bindtextdomain

environment variable TEXTDOMAINDIR

setlocale

automatic

Prerequisite

For the shell functions approach: . gettext.sh

Use or emulate GNU gettext

use

Extractor

xgettext

Formatting with positions

There are three approaches; see below for details.

Portability

fully portable

po-mode marking

An example is available in the examples directory: hello-sh.


Next: bash - Bourne-Again Shell Script, Previous: Ruby, Up: Individual Programming Languages [Contents][Index]

AltStyle によって変換されたページ (->オリジナル) /