Skip to content

Begin gettextizing Git

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

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest17 patches 36 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/17Makefile: A variable for options used by xgettext(1) callsMakefile+4 -32 replies
2/17Makefile: provide a --msgid-bugs-address to xgettext(1)Makefile+1 -10 replies
3/17Makefile: tell xgettext(1) that our source is in UTF-8Makefile+1 -10 replies
4/17builtin.h: Include gettext.hbuiltin.h+1 -00 replies
5/17gettext: make the simple parts of git-init localizablebuiltin/init-db.c+23 -236 replies
6/17gettext: localize the main git-init messagebuiltin/init-db.c+7 -33 replies
7/17gettext.c: work around us not using setlocale(LC_CTYPE, "")gettext.c+6 -06 replies
8/17gettext tests: test if $VERSION exists before using itt/t0202/test.pl+3 -10 replies
9/17gettext tests: update test/is.po to match t/t0200/test.cpo/is.po t/t0200-gettext-basic.sh+4 -40 replies
10/17gettext tests: add detection for is_IS.ISO-8859-1 localet/lib-gettext.sh+23 -30 replies
11/17gettext tests: test message re-encoding under Shellpo/is.po t/t0200/test.c t/t0204-gettext-reencode-sanity.sh+61 -00 replies
12/17gettext tests: test re-encoding with a UTF-8 msgid under Shellpo/is.po t/t0200/test.c t/t0204-gettext-reencode-sanity.sh+30 -00 replies
13/17gettext tests: mark a test message as not needing translationt/t0200/test.c+1 -00 replies
14/17po/is.po: msgmerge and add Language: headerpo/is.po+4 -20 replies
15/17po/is.po: add Icelandic translationpo/is.po+127 -85 replies
16/17po/pl.po: add Polish translationpo/pl.po+187 -00 replies
17/17gettext tests: test message re-encoding under Ct/t0204-gettext-reencode-sanity.sh+14 -00 replies

Reviews trailers per patch

None of the 17 patches has a Reviewed-by or Acked-by.

PatchJens LehmannBill Fenner
1/17
2/17
3/17
4/17
5/17
6/17
7/17Submitted-By
8/17T-b
9/17
10/17
11/17
12/17
13/17
14/17
15/17
16/17
17/17

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v1 thread

Cover letter [PATCH/RFC 00/17] Begin gettextizing Git

Now that Git has the infrastructure for translation in next I'm going to start submitting patches to make the main porcelain translatable.

This series starts that work, and fixes and also fixes up some of the infrastructure (like the bug discussed in "Odd encoding issue with UTF-8 + gettext yields ? on non-ASCII"), and adds tests to make sure it's all working.

With it applied git-init is the one and only utility of the porcelain that's translatable. The series includes a translation of it into Icelandic and Polish.

I think it's ready to be applied. I tested it on Solaris, FreeBSD and Debian. But there's almost definitely something I'm missing in a series this big, so it's an RFC.

Marcin Cieślak (1):
po/pl.po: add Polish translation

Ævar Arnfjörð Bjarmason (16):
Makefile: A variable for options used by xgettext(1) calls
Makefile: provide a --msgid-bugs-address to xgettext(1)
Makefile: tell xgettext(1) that our source is in UTF-8 builtin.h: Include gettext.h
gettext: make the simple parts of git-init localizable
gettext: localize the main git-init message gettext.c: work around us not using setlocale(LC_CTYPE, "") gettext tests: test if $VERSION exists before using it gettext tests: update test/is.po to match t/t0200/test.c gettext tests: add detection for is_IS.ISO-8859-1 locale gettext tests: test message re-encoding under Shell gettext tests: test re-encoding with a UTF-8 msgid under Shell gettext tests: mark a test message as not needing translation po/is.po: msgmerge and add Language: header po/is.po: add Icelandic translation
gettext tests: test message re-encoding under C

 Makefile                           |    7 +-
 builtin.h                          |    1 +
 builtin/init-db.c                  |   56 ++++++-----
 gettext.c                          |    6 +
 po/is.po                           |  153 ++++++++++++++++++++++++++++--
 po/pl.po                           |  187 ++++++++++++++++++++++++++++++++++++
 t/lib-gettext.sh                   |   26 +++++-
 t/t0200-gettext-basic.sh           |    4 +-
 t/t0200/test.c                     |   10 ++
 t/t0202/test.pl                    |    4 +-
 t/t0204-gettext-reencode-sanity.sh |   78 +++++++++++++++
 11 files changed, 490 insertions(+), 42 deletions(-)
 create mode 100644 po/pl.po
 create mode 100755 t/t0204-gettext-reencode-sanity.sh
Signature · 1 line
1.7.2.2.536.g3f548