Skip to content

No-op gettextize core Git C programs

Ævar Arnfjörð Bjarmason git 2 versions In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v4 Latest73 patches 29 repliesIn review
  2. v172 patches 15 repliesSuperseded

Patches in v4 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/73gettext: add no-op _() and N_() wrappersMakefile cache.h gettext.h+28 -00 replies
2/73gettext tests: add GETTEXT_POISON to simulate unfriendly translatorMakefile gettext.h t/test-lib.sh+17 -13 replies
3/73gettext: do not poison translations unless GIT_GETTEXT_POISON envvar is setMakefile gettext.c gettext.h +1 more+26 -30 replies
4/73Makefile: "pot" target to extract messages marked for translationMakefile po/.gitignore+17 -05 replies
5/73gettextize: git-init basic messagesbuiltin/init-db.c+23 -230 replies
6/73gettextize: git-init "Initialized [...] repository" messagebuiltin/init-db.c t/t0001-init.sh+10 -40 replies
7/73gettextize: git-clone basic messagesbuiltin/clone.c+27 -270 replies
8/73gettextize: git-clone "Cloning into" messagebuiltin/clone.c+6 -30 replies
9/73gettextize: git-clone "Cloning into" messagebuiltin/clone.c t/t5601-clone.sh+3 -30 replies
10/73gettextize: git-add basic messagesbuiltin/add.c+18 -180 replies
11/73gettextize: git-add "The following paths are ignored" messagebuiltin/add.c t/t2204-add-ignored.sh t/t3700-add.sh+33 -170 replies
12/73gettextize: git-add "did not match any files" messagebuiltin/add.c t/t3700-add.sh+7 -30 replies
13/73gettextize: git-add "remove '%s'" messagebuiltin/add.c t/t2200-add-update.sh+2 -20 replies
14/73gettextize: git-add "Unstaged changes" messagebuiltin/add.c+1 -10 replies
15/73gettextize: git-branch basic messagesbuiltin/branch.c+28 -280 replies
16/73gettextize: git-branch "remote branch '%s' not found" messagebuiltin/branch.c+2 -11 reply
17/73gettextize: git-branch "Deleted branch [...]" messagebuiltin/branch.c t/t3200-branch.sh+2 -23 replies
18/73gettextize: git-branch "git branch -v" messagesbuiltin/branch.c t/t6040-tracking-info.sh+4 -41 reply
19/73gettextize: git-branch "(no branch)" messagebuiltin/branch.c t/t3203-branch-output.sh+2 -20 replies
20/73gettextize: git-checkout basic messagesbuiltin/checkout.c+34 -340 replies
21/73gettextize: git-checkout: our/their version messagebuiltin/checkout.c+8 -60 replies
22/73gettextize: git-checkout describe_detached_head messagesbuiltin/checkout.c+1 -10 replies
23/73gettextize: git-checkout "HEAD is now at" messagebuiltin/checkout.c t/t7201-co.sh+6 -61 reply
24/73gettextize: git-checkout "Switched to a .. branch" messagebuiltin/checkout.c+4 -35 replies
25/73gettextize: git-commit basic messagesbuiltin/commit.c+59 -590 replies
26/73gettextize: git-commit "middle of a merge" messagebuiltin/commit.c t/t7110-reset-merge.sh+5 -50 replies
27/73gettextize: git-commit formatting messagesbuiltin/commit.c t/t7502-commit.sh+8 -86 replies
28/73gettextize: git-commit print_summary messagesbuiltin/commit.c t/t7502-commit.sh+10 -40 replies
29/73gettextize: git-commit "enter the commit message" messagebuiltin/commit.c t/t7500-commit.sh t/t7502-commit.sh+27 -190 replies
30/73gettextize: git-commit advice messagesbuiltin/commit.c+6 -60 replies
31/73gettextize: git-diff basic messagesbuiltin/diff.c+9 -90 replies
32/73gettextize: git-fetch basic messagesbuiltin/fetch.c+23 -230 replies
33/73gettextize: git-fetch formatting messagesbuiltin/fetch.c t/t5526-fetch-submodules.sh+42 -180 replies
34/73gettextize: git-fetch update_local_ref messagesbuiltin/fetch.c+5 -50 replies
35/73gettextize: git-fetch split up "(non-fast-forward)" messagebuiltin/fetch.c+3 -30 replies
36/73gettextize: git-grep basic messagesbuiltin/grep.c+16 -160 replies
37/73gettextize: git-grep "--open-files-in-pager" messagebuiltin/grep.c t/t7811-grep-open.sh+2 -20 replies
38/73gettextize: git-log basic messagesbuiltin/log.c+31 -310 replies
39/73gettextize: git-log "--OPT does not make sense" messagesbuiltin/log.c t/t4014-format-patch.sh+4 -40 replies
40/73gettextize: git-merge basic messagesbuiltin/merge.c t/t7607-merge-overwrite.sh t/t7611-merge-abort.sh+86 -680 replies
41/73gettextize: git-merge "Updating %s..%s" messagebuiltin/merge.c t/t1200-tutorial.sh+5 -20 replies
42/73gettextize: git-merge "You have not concluded your merge" messagest/t3030-merge-recursive.sh+1 -10 replies
43/73gettextize: git-merge "Wonderful" messagebuiltin/merge.c t/t7600-merge.sh+2 -20 replies
44/73gettextize: git-mv basic messagesbuiltin/mv.c+8 -80 replies
45/73gettextize: git-mv "bad" messagesbuiltin/mv.c+8 -80 replies
46/73gettextize: git-rm basic messagesbuiltin/rm.c+11 -110 replies
47/73gettextize: git-reset basic messagesbuiltin/reset.c+13 -130 replies
48/73gettextize: git-reset reset_type_names messagesbuiltin/reset.c+7 -70 replies
49/73gettextize: git-reset "Unstaged changes after reset" messagebuiltin/reset.c t/t7102-reset.sh+2 -20 replies
50/73gettextize: git-tag basic messagesbuiltin/tag.c+30 -300 replies
51/73gettextize: git-tag tag_template messagebuiltin/tag.c t/t7004-tag.sh+4 -30 replies
52/73gettextize: git-push basic messagesbuiltin/push.c+19 -190 replies
53/73gettextize: git-push "prevent you from losing" messagebuiltin/push.c t/lib-httpd.sh t/t5541-http-push.sh+8 -50 replies
54/73gettextize: git-status basic messagest/t7060-wtstatus.sh t/t7506-status-submodule.sh t/t7508-status.sh +1 more+119 -1040 replies
55/73gettextize: git-status "nothing to commit" messagest/t7506-status-submodule.sh wt-status.c+10 -100 replies
56/73gettextize: git-status shortstatus messageswt-status.c+6 -60 replies
57/73gettextize: git-status "Changes to be committed" messaget/t7502-commit.sh wt-status.c+11 -110 replies
58/73gettextize: git-status "Initial commit" messaget/t7501-commit.sh wt-status.c+6 -30 replies
59/73gettextize: git-status "renamed: " messaget/t4001-diff-rename.sh wt-status.c+3 -30 replies
60/73gettextize: git-archive basic messagesbuiltin/archive.c+7 -70 replies
61/73gettextize: git-bundle basic messagesbuiltin/bundle.c+3 -30 replies
62/73gettextize: git-clean basic messagesbuiltin/clean.c t/t7012-skip-worktree-writing.sh t/t7300-clean.sh+15 -150 replies
63/73gettextize: git-clean clean.requireForce messagesbuiltin/clean.c+8 -30 replies
64/73gettextize: git-describe basic messagesbuiltin/describe.c t/t6120-describe.sh+19 -193 replies
65/73gettextize: git-gc basic messagesbuiltin/gc.c+5 -50 replies
66/73gettextize: git-gc "Auto packing the repository" messagebuiltin/gc.c+7 -70 replies
67/73gettextize: git-notes basic commandsbuiltin/notes.c+53 -530 replies
68/73gettextize: git-notes GIT_NOTES_REWRITE_MODE error messagebuiltin/notes.c+4 -20 replies
69/73gettextize: git-revert basic messagesbuiltin/revert.c+23 -230 replies
70/73gettextize: git-revert "Your local changes" messagebuiltin/revert.c t/t3501-revert-cherry-pick.sh+14 -60 replies
71/73gettextize: git-revert literal "me" messagesbuiltin/revert.c+5 -20 replies
72/73gettextize: git-revert split up "could not revert/apply" messagebuiltin/revert.c t/t3507-cherry-pick-conflict.sh+4 -30 replies
73/73gettextize: git-shortlog basic messagesbuiltin/shortlog.c+4 -40 replies

Reviews trailers per patch

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

Read the v4 thread

Cover letter [PATCH v4 00/73] No-op gettextize core Git C programs

This is an improved version of the no-op gettextize series for core Git C programs based on Jonathan Nieder's v3 series. Changes since then.

* After it's applied Git will no longer fail tests when compiled with GETTEXT_POISON=YesPlease. It did this because Jonathan's series changed the GETTEXT POISON string. See the comment in the "simulate unfriendly translator" patch. Regarding Junio's comment:

As to Malkovich, I tend to agree with your reasoning that code that emit messages prefixed by "#" rebase relies on should be restructured to limit the scope of translation to just the body of these lines, and that should be done in a separate patch.

I agree. I'll change it to just "GETTEXT POISON" in a later patch. But I'd prefer not to break git in any testing mode until then.

* Reverted back to using the "gettextize" patch subjects I originally used. I'm using these consistetly so I can later git log --grep=gettextize: to find them. I'd like to preserve that attributed.

* Amended and improved some log messages.

Other than that it's the same. For this to compile without warnings you first need the "Add missing const to char* declarations" series I've just submitted. But otherwise it's all good to go.

Jonathan Nieder (1):
gettext: do not poison translations unless GIT_GETTEXT_POISON envvar
is set

Ævar Arnfjörð Bjarmason (72):
gettext: add no-op _() and N_() wrappers
gettext tests: add GETTEXT_POISON to simulate unfriendly translator
Makefile: "pot" target to extract messages marked for translation
gettextize: git-init basic messages
gettextize: git-init "Initialized [...] repository" message
gettextize: git-clone basic messages
gettextize: git-clone "Cloning into" message
gettextize: git-clone "Cloning into" message
gettextize: git-add basic messages
gettextize: git-add "The following paths are ignored" message
gettextize: git-add "did not match any files" message
gettextize: git-add "remove '%s'" message
gettextize: git-add "Unstaged changes" message
gettextize: git-branch basic messages
gettextize: git-branch "remote branch '%s' not found" message
gettextize: git-branch "Deleted branch [...]" message
gettextize: git-branch "git branch -v" messages
gettextize: git-branch "(no branch)" message
gettextize: git-checkout basic messages
gettextize: git-checkout: our/their version message
gettextize: git-checkout describe_detached_head messages
gettextize: git-checkout "HEAD is now at" message
gettextize: git-checkout "Switched to a .. branch" message
gettextize: git-commit basic messages
gettextize: git-commit "middle of a merge" message
gettextize: git-commit formatting messages
gettextize: git-commit print_summary messages
gettextize: git-commit "enter the commit message" message
gettextize: git-commit advice messages
gettextize: git-diff basic messages
gettextize: git-fetch basic messages
gettextize: git-fetch formatting messages
gettextize: git-fetch update_local_ref messages
gettextize: git-fetch split up "(non-fast-forward)" message
gettextize: git-grep basic messages
gettextize: git-grep "--open-files-in-pager" message
gettextize: git-log basic messages
gettextize: git-log "--OPT does not make sense" messages
gettextize: git-merge basic messages
gettextize: git-merge "Updating %s..%s" message
gettextize: git-merge "You have not concluded your merge" messages
gettextize: git-merge "Wonderful" message
gettextize: git-mv basic messages
gettextize: git-mv "bad" messages
gettextize: git-rm basic messages
gettextize: git-reset basic messages
gettextize: git-reset reset_type_names messages
gettextize: git-reset "Unstaged changes after reset" message
gettextize: git-tag basic messages
gettextize: git-tag tag_template message
gettextize: git-push basic messages
gettextize: git-push "prevent you from losing" message
gettextize: git-status basic messages
gettextize: git-status "nothing to commit" messages
gettextize: git-status shortstatus messages
gettextize: git-status "Changes to be committed" message
gettextize: git-status "Initial commit" message
gettextize: git-status "renamed: " message
gettextize: git-archive basic messages
gettextize: git-bundle basic messages
gettextize: git-clean basic messages
gettextize: git-clean clean.requireForce messages
gettextize: git-describe basic messages
gettextize: git-gc basic messages
gettextize: git-gc "Auto packing the repository" message
gettextize: git-notes basic commands
gettextize: git-notes GIT_NOTES_REWRITE_MODE error message
gettextize: git-revert basic messages
gettextize: git-revert "Your local changes" message
gettextize: git-revert literal "me" messages
gettextize: git-revert split up "could not revert/apply" message
gettextize: git-shortlog basic messages

 Makefile                         |   27 ++++++
 builtin/add.c                    |   50 ++++++------
 builtin/archive.c                |   14 ++--
 builtin/branch.c                 |   69 ++++++++--------
 builtin/bundle.c                 |    6 +-
 builtin/checkout.c               |   93 +++++++++++-----------
 builtin/clean.c                  |   33 +++++---
 builtin/clone.c                  |   63 ++++++++-------
 builtin/commit.c                 |  162 +++++++++++++++++++-------------------
 builtin/describe.c               |   36 ++++----
 builtin/diff.c                   |   18 ++--
 builtin/fetch.c                  |   82 ++++++++++----------
 builtin/gc.c                     |   24 +++---
 builtin/grep.c                   |   34 ++++----
 builtin/init-db.c                |   58 ++++++++------
 builtin/log.c                    |   68 ++++++++--------
 builtin/merge.c                  |  128 +++++++++++++++---------------
 builtin/mv.c                     |   32 ++++----
 builtin/notes.c                  |  112 +++++++++++++-------------
 builtin/push.c                   |   42 +++++-----
 builtin/reset.c                  |   42 +++++-----
 builtin/revert.c                 |   76 ++++++++++--------
 builtin/rm.c                     |   22 +++---
 builtin/shortlog.c               |    8 +-
 builtin/tag.c                    |   66 ++++++++--------
 cache.h                          |    1 +
 gettext.c                        |   14 +++
 gettext.h                        |   32 ++++++++
 po/.gitignore                    |    1 +
 t/lib-httpd.sh                   |    2 +-
 t/t0001-init.sh                  |    2 +-
 t/t1200-tutorial.sh              |    5 +-
 t/t2200-add-update.sh            |    2 +-
 t/t2204-add-ignored.sh           |   37 ++++++---
 t/t3030-merge-recursive.sh       |    2 +-
 t/t3200-branch.sh                |    2 +-
 t/t3203-branch-output.sh         |    2 +-
 t/t3501-revert-cherry-pick.sh    |    2 +-
 t/t3507-cherry-pick-conflict.sh  |    2 +-
 t/t3700-add.sh                   |   13 +++-
 t/t4001-diff-rename.sh           |    4 +-
 t/t4014-format-patch.sh          |    2 +-
 t/t5526-fetch-submodules.sh      |   40 ++++++++--
 t/t5541-http-push.sh             |    7 +-
 t/t5601-clone.sh                 |    2 +-
 t/t6040-tracking-info.sh         |    2 +-
 t/t6120-describe.sh              |    2 +-
 t/t7004-tag.sh                   |    1 +
 t/t7012-skip-worktree-writing.sh |    4 +-
 t/t7060-wtstatus.sh              |    2 +-
 t/t7102-reset.sh                 |    2 +-
 t/t7110-reset-merge.sh           |    6 +-
 t/t7201-co.sh                    |   10 +-
 t/t7300-clean.sh                 |    6 +-
 t/t7500-commit.sh                |    8 +-
 t/t7501-commit.sh                |    7 +-
 t/t7502-commit.sh                |   60 +++++++++------
 t/t7506-status-submodule.sh      |   28 +++---
 t/t7508-status.sh                |  115 +++++++++++++++------------
 t/t7600-merge.sh                 |    2 +-
 t/t7607-merge-overwrite.sh       |   10 ++-
 t/t7611-merge-abort.sh           |   20 ++++-
 t/t7811-grep-open.sh             |    2 +-
 t/test-lib.sh                    |    9 ++
 wt-status.c                      |  116 ++++++++++++++--------------
 65 files changed, 1084 insertions(+), 867 deletions(-)
 create mode 100644 gettext.c
 create mode 100644 gettext.h
 create mode 100644 po/.gitignore
Signature · 1 line
1.7.2.3