]> git.ipfire.org Git - thirdparty/git.git/blame - git-sh-i18n.sh
Merge branch 'jc/log-quiet-fix'
[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
14 eval_gettext () {
15 printf "%s" "$1" | (
16 export PATH $(git sh-i18n--envsubst --variables "$1");
17 git sh-i18n--envsubst "$1"
18 )
19 }
20else
21 gettext () {
22 printf "%s" "# GETTEXT POISON #"
23 }
24
25 eval_gettext () {
26 printf "%s" "# GETTEXT POISON #"
27 }
28fi
e00cf070 29