Next: Preparing Shell Scripts for the gettext.sh approach, Previous: The printf approach, Up: sh - Shell Script [Contents][Index]
printf_gettext approach ¶ This approach uses
the printf_gettext and printf_ngettext programs,
contained in the run-time package of GNU gettext 0.26 or newer.
Here’s an example that references a shell variable pid:
printf_gettext 'Running as process number %u.' $pid; echo
An example is available in the hello-3.sh file
in the examples/hello-sh directory.
Advantages:
An example is available in the hello-3.sh file
in the examples/hello-sh directory.