3 # Application demonstration for GNU gettext in shell scripts.
4 # Copyright © 2015 mirabilos <t.glaser@tarent.de>
5 # Published under any OSI-approved Open Source licence.
7 # Call with, e.g: $ LC_ALL=de_DE.UTF-8 sh itest.sh x y z
11 TEXTDOMAINDIR=$(dirname "$0")/mo
12 export TEXTDOMAIN TEXTDOMAINDIR
14 test -z "$KSH_VERSION" || echo='print -r --'
16 $echo "$(eval_gettext "$1")"
19 echo Internationalised program test: language:
24 _ "Five O’Clock is tea time!"
27 $echo "$(eval_ngettext "This script was called with one argument." \
28 "This script was called with \${nargs} arguments." $nargs)"