From: "Ævar Arnfjörð Bjarmason" <avarab@gmail.com>
To: git@vger.kernel.org
Cc: "Ævar Arnfjörð Bjarmason" <avarab@gmail.com>
Subject: [PATCH/RFC v6 0/2] Add infrastructure for translating Git with gettext
Date: Thu, 3 Jun 2010 21:10:09 +0000 [thread overview]
Message-ID: <1275599411-14413-1-git-send-email-avarab@gmail.com> (raw)
This is version 6 of the patch series to make Git optionally
translatable with GNU gettext.
I had some time on the train so I polished it up since v5. Changes
since then:
* Add a blurb to INSTALL about GNU libintl being a default
requirement for building Git.
* There's now a Test::More test for Git::I18N. That module now has
complete test coverage.
* git-sh-i18n.sh now has source code comments how to use it, and
pointer to the GNU gettext manual for more.
* Eliminate the use of a wrapper function in the Perl library in
favor of a symbol table alias.
* I tested the new Perl code I wrote on perl 5.6.2, it works.
* The tests now run successfully when Git isn't built with Perl
support, or when the system doesn't support the locales we're
trying to test.
* Improve the new tests by using variables defined in test-lib.sh to
find out where the git root/po dir is instead of my own
replacements.
* Make the tests easier to read by reducing redundancy and using
e.g. "test_expect_failure grep" instead of calling test_cmp on the
results of two grep invocations.
* Add new xgettext translator comment extraction tests.
* Moved t/t0200-gettext/* tests to t/t0200/*. This follows the
convention of other tests that have their own subdirs in t/.
* Add a small (one-line) copyright notice to git-sh-i18n.sh and
Git::I18N.
Here's the difference between v5 and v6 in git diff --stat -M format:
INSTALL | 8 ++
Makefile | 6 +-
git-sh-i18n.sh | 18 +++-
perl/Git/I18N.pm | 28 ++++--
po/is.po | 2 -
t/t0200-gettext.sh | 52 ++++------
t/{t0200-gettext => t0200}/test.c | 0
t/{t0200-gettext => t0200}/test.perl | 3 +
t/{t0200-gettext => t0200}/test.sh | 0
...ell-fallbacks.sh => t0201-gettext-fallbacks.sh} | 12 ++-
t/t0202-gettext-perl.sh | 20 ++++
t/t0202/test.pl | 104 ++++++++++++++++++++
12 files changed, 203 insertions(+), 50 deletions(-)
Ævar Arnfjörð Bjarmason (2):
Add infrastructure for translating Git with gettext
Add initial C, Shell and Perl gettext translations
.gitignore | 2 +
INSTALL | 8 +++
Makefile | 44 +++++++++++++-
config.mak.in | 1 +
configure.ac | 6 ++
gettext.c | 25 ++++++++
gettext.h | 13 ++++
git-pull.sh | 16 +++--
git-send-email.perl | 3 +-
git-sh-i18n.sh | 47 ++++++++++++++
git.c | 3 +
perl/Git/I18N.pm | 91 ++++++++++++++++++++++++++++
perl/Makefile | 3 +-
perl/Makefile.PL | 14 ++++-
po/.gitignore | 1 +
po/is.po | 69 +++++++++++++++++++++
t/t0200-gettext.sh | 136 ++++++++++++++++++++++++++++++++++++++++++
t/t0200/test.c | 10 +++
t/t0200/test.perl | 14 ++++
t/t0200/test.sh | 14 ++++
t/t0201-gettext-fallbacks.sh | 42 +++++++++++++
t/t0202-gettext-perl.sh | 20 ++++++
t/t0202/test.pl | 104 ++++++++++++++++++++++++++++++++
t/test-lib.sh | 1 +
wt-status.c | 107 +++++++++++++++++----------------
25 files changed, 729 insertions(+), 65 deletions(-)
create mode 100644 gettext.c
create mode 100644 gettext.h
create mode 100644 git-sh-i18n.sh
create mode 100644 perl/Git/I18N.pm
create mode 100644 po/.gitignore
create mode 100644 po/is.po
create mode 100755 t/t0200-gettext.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/t0201-gettext-fallbacks.sh
create mode 100755 t/t0202-gettext-perl.sh
create mode 100644 t/t0202/test.pl
next reply other threads:[~2010-06-03 21:12 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-06-03 21:10 Ævar Arnfjörð Bjarmason [this message]
2010-06-03 21:10 ` [PATCH/RFC v6 1/2] Add infrastructure for translating Git with gettext Ævar Arnfjörð Bjarmason
2010-06-03 21:10 ` [PATCH/RFC v6 2/2] Add initial C, Shell and Perl gettext translations Ævar Arnfjörð Bjarmason
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: http://vger.kernel.org/majordomo-info.html
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1275599411-14413-1-git-send-email-avarab@gmail.com \
--to=avarab@gmail.com \
--cc=git@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://80x24.org/mirrors/git.git
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 read-only IMAP folder(s) and NNTP newsgroup(s).