git/list[1] front-page[2] threads[3] people[4] search[5] about
 

[PATCH 0/2] i18n: Shell script translation infrastructure

From
Ævar Arnfjörð Bjarmason <avarab@gmail.com>
Date
Apr 3, 2011, 16:42 UTC
Message-ID
<1301848953-31525-1-git-send-email-avarab@gmail.com>

Now that the C gettext infrastructure patches have made it to master I'm submitting a series to do the same for our shell scripts. These are the first two patches from:

    git://github.com/avar/git.git ab/i18n-sh-only

The rest (to be submitted soon) are the patches marking up the shellscripts themselves for translation.

Ævar Arnfjörð Bjarmason (2):
  git-sh-i18n--envsubst: our own envsubst(1) for eval_gettext()
  git-sh-i18n.sh: add no-op gettext() and eval_gettext() wrappers
 .gitignore                              |    3 +
 Documentation/git-sh-i18n--envsubst.txt |   36 +++
 Documentation/git-sh-i18n.txt           |   57 ++++
 Makefile                                |    2 +
 git-sh-i18n.sh                          |   17 ++
 sh-i18n--envsubst.c                     |  444 +++++++++++++++++++++++++++++++
 t/t0201-gettext-fallbacks.sh            |   51 ++++
 7 files changed, 610 insertions(+), 0 deletions(-)
 create mode 100644 Documentation/git-sh-i18n--envsubst.txt
 create mode 100644 Documentation/git-sh-i18n.txt
 create mode 100644 git-sh-i18n.sh
 create mode 100644 sh-i18n--envsubst.c
 create mode 100755 t/t0201-gettext-fallbacks.sh
-- 
1.7.4.1
Next: Ævar Arnfjörð Bjarmason
Message 1 of 5 in “i18n: Shell script translation infrastructure”
  1. 0/2 i18n: Shell script translation infrastructureÆvar Arnfjörð Bjarmason, Apr 3, 2011
  2. 1/2 git-sh-i18n--envsubst: our own envsubst(1) for eval_gettext()Ævar Arnfjörð Bjarmason, Apr 3, 2011
  3. Junio C HamanoApr 3, 2011
  4. Ævar Arnfjörð BjarmasonApr 10, 2011
  5. 2/2 git-sh-i18n.sh: add no-op gettext() and eval_gettext() wrappersÆvar Arnfjörð Bjarmason, Apr 3, 2011

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.