]>
Commit | Line | Data |
---|---|---|
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 |
8 | if test -z "$GIT_GETTEXT_POISON" |
9 | then | |
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 |
31 | else |
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 | 47 | fi |
e00cf070 | 48 |