feed.atom: minor tweak to workaround broken feed providers
[git-osx-installer.git] / patches / git-sh-i18n-sh-git_gettext.diff
blobb937d88f113931a9f5a0b76702c36ebf36fcbb4c
1 --- a/git-sh-i18n.sh
2 +++ b/git-sh-i18n.sh
3 @@ -45,6 +45,19 @@ 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 + eval_gettext () {
14 + git gettext "$1" | (
15 + export PATH $(git sh-i18n--envsubst --variables "$1");
16 + git sh-i18n--envsubst "$1"
17 + )
18 + }
19 + ;;
20 gettext_without_eval_gettext)
21 # Solaris has a gettext(1) but no eval_gettext(1)
22 eval_gettext () {