git-cvsexportcommit: Fix calling Perl's rel2abs() on MSYS
[git/jnareb-git.git] / git-sh-i18n.sh
blobe672366f0c3db3b547233af146cd1bba275c0042
1 #!/bin/sh
3 # Copyright (c) 2010 Ævar Arnfjörð Bjarmason
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.
8 if test -z "$GIT_GETTEXT_POISON"
9 then
10 gettext () {
11 printf "%s" "$1"
14 gettextln() {
15 printf "%s\n" "$1"
18 eval_gettext () {
19 printf "%s" "$1" | (
20 export PATH $(git sh-i18n--envsubst --variables "$1");
21 git sh-i18n--envsubst "$1"
25 eval_gettextln () {
26 printf "%s\n" "$1" | (
27 export PATH $(git sh-i18n--envsubst --variables "$1");
28 git sh-i18n--envsubst "$1"
31 else
32 gettext () {
33 printf "%s" "# GETTEXT POISON #"
36 gettextln () {
37 printf "%s\n" "# GETTEXT POISON #"
40 eval_gettext () {
41 printf "%s" "# GETTEXT POISON #"
44 eval_gettextln () {
45 printf "%s\n" "# GETTEXT POISON #"