blob: eca69e3d82be1a54770c5efba5362410cd0cf43c [file] [log] [blame]
Junio C Hamano2a294cd2011-05-23 23:06:311git-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::
30Currently a dummy fall-through function implemented as a wrapper
31around `printf(1)`. Will be replaced by a real gettext
32implementation in a later version.
33
34eval_gettext::
35Currently a dummy fall-through function implemented as a wrapper
36around `printf(1)` with variables expanded by the
Junio C Hamano360e3a12011-07-13 23:51:5637linkgit:git-sh-i18n{litdd}envsubst[1] helper. Will be replaced by a
Junio C Hamano2a294cd2011-05-23 23:06:3138real gettext implementation in a later version.
39
40GIT
41---
42Part of the linkgit:git[1] suite