]> git.ipfire.org Git - thirdparty/git.git/blame - Documentation/git-sh-i18n.txt
git-sh-i18n.sh: add no-op gettext() and eval_gettext() wrappers
[thirdparty/git.git] / Documentation / git-sh-i18n.txt
CommitLineData
e00cf070
ÆAB
1git-sh-i18n(1)
2==============
3
4NAME
5----
6git-sh-i18n - Git's i18n setup code for shell scripts
7
8SYNOPSIS
9--------
10'. "$(git --exec-path)/git-sh-i18n"'
11
12DESCRIPTION
13-----------
14
15This is not a command the end user would want to run. Ever.
16This documentation is meant for people who are studying the
17Porcelain-ish scripts and/or are writing new ones.
18
19The 'git sh-i18n scriptlet is designed to be sourced (using
20`.`) by Git's porcelain programs implemented in shell
21script. It provides wrappers for the GNU `gettext` and
22`eval_gettext` functions accessible through the `gettext.sh`
23script, and provides pass-through fallbacks on systems
24without GNU gettext.
25
26FUNCTIONS
27---------
28
29gettext::
30 Currently a dummy fall-through function implemented as a wrapper
31 around `printf(1)`. Will be replaced by a real gettext
32 implementation in a later version.
33
34eval_gettext::
35 Currently a dummy fall-through function implemented as a wrapper
36 around `printf(1)` with variables expanded by the
37 linkgit:git-sh-i18n--envsubst[1] helper. Will be replaced by a
38 real gettext implementation in a later version.
39
40GIT
41---
42Part of the linkgit:git[1] suite