git-sh-i18n.sh: add no-op gettext() and eval_gettext() wrappers
[git/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
8gettext () {
9 printf "%s" "$1"
10}
11
12eval_gettext () {
13 printf "%s" "$1" | (
14 export PATH $(git sh-i18n--envsubst --variables "$1");
15 git sh-i18n--envsubst "$1"
16 )
17}