wok-next view gettext-base/stuff/gettext.sh @ rev 14903

gettext: up 0.18.3, tiny edits
author Aleksej Bobylev <al.bobylev@gmail.com>
date Wed Jul 31 14:12:39 2013 +0300 (2013-07-31)
parents
children
line source
1 #!/bin/sh
2 eval_gettext() {
3 gettext "$1" | (export PATH $(envsubst --variables "$1"); envsubst "$1")
4 }
5 eval_ngettext() {
6 ngettext "$1" "$2" "$3" | (export PATH $(envsubst --variables "$1 $2"); envsubst "$1 $2")
7 }