Skip to content

*** SUBJECT HERE ***

Ævar Arnfjörð Bjarmason git 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest19 of 20 patches 9 repliesIn review

19 of 20 patches are in this archive. The cover letter announces 20.

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/20gettextize: git-clean clean.requireForce bracesbuiltin/clean.c+2 -10 replies
2/20gettextize: git-clone "Cloning into" message bracesbuiltin/clone.c+2 -10 replies
4/20Makefile: add GNU_GETTEXT, set when we expect GNU gettextMakefile+12 -00 replies
5/20Makefile: MSGFMT="msgfmt --check" under GNU_GETTEXTMakefile+4 -00 replies
6/20Revert "gettextize: git-revert mark the "me" variable for translation"builtin/revert.c+1 -30 replies
7/20gettextize: git-revert "Your local changes" messagebuiltin/revert.c+13 -50 replies
8/20gettextize: git-revert literal "me" messagesbuiltin/revert.c+7 -30 replies
9/20gettext: add GETTEXT_POISON support for shell scriptsgit-sh-i18n.sh t/t0201-gettext-fallbacks.sh t/test-lib.sh+58 -350 replies
10/20gettext: add GETTEXT_POISON tests for shell scriptst/t0201-gettext-poison.sh t/test-lib.sh+37 -00 replies
11/20gettextize: git-am add git-sh-i18ngit-am.sh+1 -00 replies
12/20gettextize: git-am one-line gettext $msg; echogit-am.sh+3 -30 replies
13/20gettextize: git-am multi-line getttext $msg; echogit-am.sh+5 -50 replies
14/20gettextize: git-am eval_gettext messagesgit-am.sh+6 -60 replies
15/20gettextize: git-am die messagesgit-am.sh+7 -70 replies
16/20gettextize: git-am cannot_fallback messagesgit-am.sh+3 -30 replies
17/20gettextize: git-am clean_abort messagesgit-am.sh+3 -30 replies
18/20gettextize: git-am "Apply?" messagegit-am.sh+4 -10 replies
19/20gettextize: git-am core say messagesgit-am.sh t/t4150-am.sh t/t4151-am-abort.sh+7 -50 replies
20/20gettextize: git-am printf(1) message to eval_gettextgit-am.sh+1 -14 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [PATCH 00/20] [CONTINUE] Add gettext support to Git

This series continues work where the already pulled ab/i18n series (now merged to pu) left off.

It can also be pulled from:

    git://github.com/avar/git.git ab/i18n-continue
    http://github.com/avar/git/compare/ab/i18n-in-git-2010-09-07...ab/i18n-continue
    http://github.com/avar/git/compare/ab/i18n-in-git-2010-09-07...ab/i18n-continue.patch

It includes the first translation of a mainporcelain command written in shellscript (git-am). Comments on invividual patches below.

Ævar Arnfjörð Bjarmason (20):
gettextize: git-clean clean.requireForce braces
gettextize: git-clone "Cloning into" message braces

Under GCC this warns under -Wall and will presumably break Junio's -Werror build. I didn't notice because I use clang which (IMO rightly) doesn't complain about this.

po/de.po: make the German translation msgfmt --check clean

We'll see what ze Germans come up with translation wise, but meanwhile this un-breaks the translation already in ab/i18n.

Makefile: add GNU_GETTEXT, set when we expect GNU gettext
Makefile: MSGFMT="msgfmt --check" under GNU_GETTEXT

And these two patches make sure that a translation will never break like that again. Since msgfmt --check is a GNU-ism I needed to add support for GNU_GETTEXT=YesPlease in the Makefile.

Maybe a check for this could be added to the configure.ac script, but I couldn't find a way to do so, and for the reasons explained in the patches I don't think it was worth my time.

Revert "gettextize: git-revert mark the "me" variable for
translation"

Revert this as discussion on-list. Alternatively the "gettextize:
git-revert mark the "me" variable for translation" patch could be ejected from the existing ab/i18n series.

gettextize: git-revert "Your local changes" message
gettextize: git-revert literal "me" messages

Do The Right Thing when translating the "me" messsages.

gettext: add GETTEXT_POISON support for shell scripts
gettext: add GETTEXT_POISON tests for shell scripts

We need poison for .sh too to ensure sanity.

gettextize: git-am add git-sh-i18n
gettextize: git-am one-line gettext $msg; echo
gettextize: git-am multi-line getttext $msg; echo
gettextize: git-am eval_gettext messages
gettextize: git-am die messages
gettextize: git-am cannot_fallback messages

Note: Isn't --check clean because the existing code indented with spaces.

gettextize: git-am clean_abort messages
gettextize: git-am "Apply?" message
gettextize: git-am core say messages
gettextize: git-am printf(1) message to eval_gettext

All these git-am patches are split up like this to make it easier to review them, and to demonstrate the different sort of messages we'll have to translate in the shell scripts.

I won't sent commits quite so granular in the future (unless requested).

 Makefile                     |   16 +++++++++
 builtin/clean.c              |    3 +-
 builtin/clone.c              |    3 +-
 builtin/revert.c             |   32 +++++++++++------
 git-am.sh                    |   68 +++++++++++++++++++-----------------
 git-sh-i18n.sh               |   77 +++++++++++++++++++++++++----------------
 po/de.po                     |   11 +++---
 t/t0201-gettext-fallbacks.sh |   12 +++---
 t/t0201-gettext-poison.sh    |   36 +++++++++++++++++++
 t/t4150-am.sh                |    4 ++-
 t/t4151-am-abort.sh          |    2 +-
 t/test-lib.sh                |    9 ++++-
 12 files changed, 184 insertions(+), 89 deletions(-)
 create mode 100755 t/t0201-gettext-poison.sh
Signature · 1 line
1.7.2.3.313.gcd15