patches: more minor updates
[git-osx-installer.git] / patches / git-sh-i18n-sh-git_gettext.diff
blob757c2a86c72e7e73e61c3373493a4760b1657aa2
1 --- a/git-sh-i18n.sh
2 +++ b/git-sh-i18n.sh
3 @@ -45,6 +45,30 @@ gnu)
4 # Use libintl's gettext.sh, or fall back to English if we can't.
5 . gettext.sh
6 ;;
7 +git_gettext)
8 + # Use git-gettext and git-sh-i18n--envsubst
9 + gettext () {
10 + git gettext "$1"
11 + }
13 + ngettext () {
14 + git gettext "$1" "$2" "$3"
15 + }
17 + eval_gettext () {
18 + git gettext "$1" | (
19 + export PATH $(git sh-i18n--envsubst --variables "$1");
20 + git sh-i18n--envsubst "$1"
21 + )
22 + }
24 + eval_ngettext () {
25 + git gettext "$1" "$2" "$3" | (
26 + export PATH $(git sh-i18n--envsubst --variables "$2");
27 + git sh-i18n--envsubst "$2"
28 + )
29 + }
30 + ;;
31 gettext_without_eval_gettext)
32 # Solaris has a gettext(1) but no eval_gettext(1)
33 eval_gettext () {