diff options
author | Ævar Arnfjörð Bjarmason <avarab@gmail.com> | 2011-05-14 13:47:43 +0000 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2011-05-14 20:29:11 -0700 |
commit | e00cf070a45351e4170b75e016597695d1962a87 (patch) | |
tree | a819f35973dc3ccea34ab0b5fbd4cba0824226fe /git-sh-i18n.sh | |
parent | ba67aaf2d05d1aa3def2b6eb1dc1d39bdf25bb41 (diff) | |
download | git-e00cf070a45351e4170b75e016597695d1962a87.tar.gz |
git-sh-i18n.sh: add no-op gettext() and eval_gettext() wrappers
Add a no-op wrapper library for Git's shell scripts. To split up the
gettext series I'm first submitting patches to gettextize the source
tree before I add any of the Makefile and Shell library changes needed
to actually use them.
Signed-off-by: Ævar Arnfjörð Bjarmason <avarab@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'git-sh-i18n.sh')
-rw-r--r-- | git-sh-i18n.sh | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/git-sh-i18n.sh b/git-sh-i18n.sh new file mode 100644 index 0000000000..ea05e16b19 --- /dev/null +++ b/git-sh-i18n.sh @@ -0,0 +1,17 @@ +#!/bin/sh +# +# Copyright (c) 2010 Ævar Arnfjörð Bjarmason +# +# This is a skeleton no-op implementation of gettext for Git. It'll be +# replaced by something that uses gettext.sh in a future patch series. + +gettext () { + printf "%s" "$1" +} + +eval_gettext () { + printf "%s" "$1" | ( + export PATH $(git sh-i18n--envsubst --variables "$1"); + git sh-i18n--envsubst "$1" + ) +} |