From: "Ævar Arnfjörð Bjarmason" <avarab@gmail.com>
To: git@vger.kernel.org
Cc: "Ævar Arnfjörð Bjarmason" <avarab@gmail.com>
Subject: [PATCH/RFC v8 0/2] Gettext support for Git
Date: Sat, 5 Jun 2010 21:12:51 +0000 [thread overview]
Message-ID: <1275772373-26718-1-git-send-email-avarab@gmail.com> (raw)
This is version 8 of the series to make Git optionally translatable
with GNU gettext.
Changes since version 7:
Incorporated a bunch of suggestions and fixes from Jonathan Nieder
and Jakub Narebski, thanks for those. Added some changes of my own
too.
* Don't compile gettext.c at all when NO_GETTEXT is defined. Just
define a stub function in gettext.h
* Add back support (and a new test) for the no-op N_() macro. This
is used for marking translations for later use, e.g.:
const char help[] =
N_("See 'git help COMMAND' for more information on a specific command.");
int main(void)
{
puts(_(help));
* Define NEEDS_LIBINTL depending on whether gettext is in the C
library when running the autoconf script. Tested on Debian and
FreeBSD.
* Add the git_setup_gettext() initialization function to all
$(PROGRAM_OBJS). This enables translation of git-imap-send,
git-daemon and others that don't use git.c's main function.
* Define git_setup_gettext as returning `extern void' instead of
`void' as suggested by Jonathan Nieder.
* Update is.po whose comments hadn't been updated for the t/
directory renaming done in an earlier patch version.
* rebase the series so that the two two patches now work
stand-alone. Some tests meant for the second patch had crept into
the first one during earlier rebases.
Here's the diff --stat since v7:
Makefile | 4 +++-
config.mak.in | 1 +
configure.ac | 6 ++++++
daemon.c | 3 +++
fast-import.c | 3 +++
gettext.c | 6 +-----
gettext.h | 7 ++++++-
http-backend.c | 3 +++
http-fetch.c | 3 +++
http-push.c | 3 +++
imap-send.c | 3 +++
po/is.po | 25 +++++++++++++------------
shell.c | 3 +++
show-index.c | 3 +++
t/t0200-gettext.sh | 6 +++++-
t/t0200/test.c | 4 ++++
upload-pack.c | 3 +++
17 files changed, 66 insertions(+), 20 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 | 69 ++++++++++++++++++-
config.mak.in | 2 +
configure.ac | 12 +++
daemon.c | 3 +
fast-import.c | 3 +
gettext.c | 21 ++++++
gettext.h | 18 +++++
git-pull.sh | 16 +++--
git-send-email.perl | 3 +-
git-sh-i18n.sh | 47 +++++++++++++
git.c | 3 +
http-backend.c | 3 +
http-fetch.c | 3 +
http-push.c | 3 +
imap-send.c | 3 +
perl/Git/I18N.pm | 91 +++++++++++++++++++++++++
perl/Makefile | 3 +-
perl/Makefile.PL | 14 ++++-
po/.gitignore | 1 +
po/is.po | 70 +++++++++++++++++++
shell.c | 3 +
show-index.c | 3 +
t/t0200-gettext.sh | 154 ++++++++++++++++++++++++++++++++++++++++++
t/t0200/test.c | 14 ++++
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 | 2 +
upload-pack.c | 3 +
wt-status.c | 107 +++++++++++++++--------------
34 files changed, 813 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-05 21:13 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-06-05 21:12 Ævar Arnfjörð Bjarmason [this message]
2010-06-05 21:12 ` [PATCH/RFC v8 1/2] Add infrastructure for translating Git with gettext Ævar Arnfjörð Bjarmason
2010-06-05 21:12 ` [PATCH/RFC v8 2/2] Add initial C, Shell and Perl gettext translations Ævar Arnfjörð Bjarmason
2010-06-05 21:29 ` [PATCH/RFC v8 0/2] Gettext support for Git Jakub Narebski
2010-06-05 21:35 ` Æ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=1275772373-26718-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).