git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [RFC/PATCH] i18n back from the dead
@ 2011-11-11  0:09 Ævar Arnfjörð Bjarmason
  2011-11-11  0:09 ` [RFC/PATCH] i18n: add infrastructure for translating Git with gettext Ævar Arnfjörð Bjarmason
  0 siblings, 1 reply; 6+ messages in thread
From: Ævar Arnfjörð Bjarmason @ 2011-11-11  0:09 UTC (permalink / raw)
  To: git; +Cc: Ævar Arnfjörð Bjarmason

Or, a patch so huge it needs it own cover letter.

After looking at my dormant i18n series I found that it was spread out
over so many pieces that even I didn't understand it anymore.

So here's an attempt to fix that. I've squashed everything we'll need
to get i18n working in Git down to one patch. Much of the previous
complexity came about because I was adding little things to it
incrementally, and I kept carrying around commits that were
effectively bugfixes on top of the original code.

Now it's all in one big patch, and while the diffstat looks scary at
first a lot of it is tests, documentation and a giant comment.

It's an RFC because there are bound to be bugs in there that I haven't
spotted, and po/README is out of date, I haven't updated it for some
of the new C and Shell functions we now have.

But it seems to function just fine. I've tested it on two Linux boxes
and a Solaris box and it works as intended, but review and testing on
other platforms would be most welcome.

This is all we need to start using PO files that are dropped in po/,
which I don't think is all that shabby for 1300 lines changed.

Ævar Arnfjörð Bjarmason (1):
  i18n: add infrastructure for translating Git with gettext

 .gitignore                          |    1 +
 Documentation/CodingGuidelines      |    7 +
 INSTALL                             |   12 ++
 Makefile                            |   81 +++++++++++++-
 config.mak.in                       |    3 +
 configure.ac                        |   19 +++
 daemon.c                            |    2 +
 fast-import.c                       |    2 +
 gettext.c                           |  116 +++++++++++++++++++
 gettext.h                           |   25 ++++-
 git-sh-i18n.sh                      |  100 ++++++++++++-----
 git.c                               |    2 +
 http-backend.c                      |    2 +
 http-fetch.c                        |    2 +
 http-push.c                         |    2 +
 imap-send.c                         |    2 +
 perl/Git/I18N.pm                    |   89 +++++++++++++++
 perl/Makefile                       |    3 +-
 perl/Makefile.PL                    |   14 ++-
 po/README                           |  209 +++++++++++++++++++++++++++++++++++
 po/is.po                            |   93 ++++++++++++++++
 shell.c                             |    1 +
 show-index.c                        |    2 +
 t/lib-gettext.sh                    |   55 +++++++++
 t/t0200-gettext-basic.sh            |  108 ++++++++++++++++++
 t/t0200/test.c                      |   23 ++++
 t/t0200/test.perl                   |   14 +++
 t/t0200/test.sh                     |   14 +++
 t/t0201-gettext-fallbacks.sh        |   20 +++-
 t/t0202-gettext-perl.sh             |   27 +++++
 t/t0202/test.pl                     |  110 ++++++++++++++++++
 t/t0203-gettext-setlocale-sanity.sh |   26 +++++
 t/t0204-gettext-reencode-sanity.sh  |   78 +++++++++++++
 t/t0205-gettext-poison.sh           |   36 ++++++
 t/test-lib.sh                       |    3 +
 upload-pack.c                       |    2 +
 wrap-for-bin.sh                     |    3 +-
 37 files changed, 1269 insertions(+), 39 deletions(-)
 create mode 100644 perl/Git/I18N.pm
 create mode 100644 po/README
 create mode 100644 po/is.po
 create mode 100644 t/lib-gettext.sh
 create mode 100755 t/t0200-gettext-basic.sh
 create mode 100644 t/t0200/test.c
 create mode 100644 t/t0200/test.perl
 create mode 100644 t/t0200/test.sh
 create mode 100755 t/t0202-gettext-perl.sh
 create mode 100644 t/t0202/test.pl
 create mode 100755 t/t0203-gettext-setlocale-sanity.sh
 create mode 100755 t/t0204-gettext-reencode-sanity.sh
 create mode 100755 t/t0205-gettext-poison.sh

-- 
1.7.6.3

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2011-11-18 12:30 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-11-11  0:09 [RFC/PATCH] i18n back from the dead Ævar Arnfjörð Bjarmason
2011-11-11  0:09 ` [RFC/PATCH] i18n: add infrastructure for translating Git with gettext Ævar Arnfjörð Bjarmason
2011-11-11 10:27   ` Jakub Narebski
2011-11-11 10:34     ` Ævar Arnfjörð Bjarmason
2011-11-17 23:17   ` Junio C Hamano
2011-11-18 12:29     ` Ævar Arnfjörð Bjarmason

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).