]> git.ipfire.org Git - thirdparty/git.git/blame - git-sh-i18n.sh
revert: allow cherry-pick --continue to commit before resuming
[thirdparty/git.git] / git-sh-i18n.sh
CommitLineData
e00cf070
ÆAB
1#!/bin/sh
2#
3# Copyright (c) 2010 Ævar Arnfjörð Bjarmason
4#
5# This is a skeleton no-op implementation of gettext for Git. It'll be
6# replaced by something that uses gettext.sh in a future patch series.
7
64a42951
ÆAB
8if test -z "$GIT_GETTEXT_POISON"
9then
10 gettext () {
11 printf "%s" "$1"
12 }
13
3da5c543
JS
14 gettextln() {
15 printf "%s\n" "$1"
16 }
17
64a42951
ÆAB
18 eval_gettext () {
19 printf "%s" "$1" | (
20 export PATH $(git sh-i18n--envsubst --variables "$1");
21 git sh-i18n--envsubst "$1"
22 )
23 }
3da5c543
JS
24
25 eval_gettextln () {
26 printf "%s\n" "$1" | (
27 export PATH $(git sh-i18n--envsubst --variables "$1");
28 git sh-i18n--envsubst "$1"
29 )
30 }
64a42951
ÆAB
31else
32 gettext () {
33 printf "%s" "# GETTEXT POISON #"
34 }
35
3da5c543
JS
36 gettextln () {
37 printf "%s\n" "# GETTEXT POISON #"
38 }
39
64a42951
ÆAB
40 eval_gettext () {
41 printf "%s" "# GETTEXT POISON #"
42 }
3da5c543
JS
43
44 eval_gettextln () {
45 printf "%s\n" "# GETTEXT POISON #"
46 }
64a42951 47fi
e00cf070 48