No-op gettextize core Git C programs
Get series with b4
b4 am [email protected]Versions newest first · linked by author and title
- v4 Latest73 patches 29 repliesIn review
- v172 patches 15 repliesSuperseded
Patches in v4 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/73 | gettext: add no-op _() and N_() wrappersMakefile cache.h gettext.h | +28 | 0 replies | |
| 2/73 | gettext tests: add GETTEXT_POISON to simulate unfriendly translatorMakefile gettext.h t/ | +17 | 3 replies | |
| 3/73 | gettext: do not poison translations unless GIT_GETTEXT_POISON envvar is setMakefile gettext.c gettext.h +1 more | +26 | 0 replies | |
| 4/73 | Makefile: "pot" target to extract messages marked for translationMakefile po/ | +17 | 5 replies | |
| 5/73 | gettextize: git-init basic messagesbuiltin/ | +23 | 0 replies | |
| 6/73 | gettextize: git-init "Initialized [...] repository" messagebuiltin/ t/ | +10 | 0 replies | |
| 7/73 | gettextize: git-clone basic messagesbuiltin/ | +27 | 0 replies | |
| 8/73 | gettextize: git-clone "Cloning into" messagebuiltin/ | +6 | 0 replies | |
| 9/73 | gettextize: git-clone "Cloning into" messagebuiltin/ t/ | +3 | 0 replies | |
| 10/73 | gettextize: git-add basic messagesbuiltin/ | +18 | 0 replies | |
| 11/73 | gettextize: git-add "The following paths are ignored" messagebuiltin/ t/ t/ | +33 | 0 replies | |
| 12/73 | gettextize: git-add "did not match any files" messagebuiltin/ t/ | +7 | 0 replies | |
| 13/73 | gettextize: git-add "remove '%s'" messagebuiltin/ t/ | +2 | 0 replies | |
| 14/73 | gettextize: git-add "Unstaged changes" messagebuiltin/ | +1 | 0 replies | |
| 15/73 | gettextize: git-branch basic messagesbuiltin/ | +28 | 0 replies | |
| 16/73 | gettextize: git-branch "remote branch '%s' not found" messagebuiltin/ | +2 | 1 reply | |
| 17/73 | gettextize: git-branch "Deleted branch [...]" messagebuiltin/ t/ | +2 | 3 replies | |
| 18/73 | gettextize: git-branch "git branch -v" messagesbuiltin/ t/ | +4 | 1 reply | |
| 19/73 | gettextize: git-branch "(no branch)" messagebuiltin/ t/ | +2 | 0 replies | |
| 20/73 | gettextize: git-checkout basic messagesbuiltin/ | +34 | 0 replies | |
| 21/73 | gettextize: git-checkout: our/their version messagebuiltin/ | +8 | 0 replies | |
| 22/73 | gettextize: git-checkout describe_detached_head messagesbuiltin/ | +1 | 0 replies | |
| 23/73 | gettextize: git-checkout "HEAD is now at" messagebuiltin/ t/ | +6 | 1 reply | |
| 24/73 | gettextize: git-checkout "Switched to a .. branch" messagebuiltin/ | +4 | 5 replies | |
| 25/73 | gettextize: git-commit basic messagesbuiltin/ | +59 | 0 replies | |
| 26/73 | gettextize: git-commit "middle of a merge" messagebuiltin/ t/ | +5 | 0 replies | |
| 27/73 | gettextize: git-commit formatting messagesbuiltin/ t/ | +8 | 6 replies | |
| 28/73 | gettextize: git-commit print_summary messagesbuiltin/ t/ | +10 | 0 replies | |
| 29/73 | gettextize: git-commit "enter the commit message" messagebuiltin/ t/ t/ | +27 | 0 replies | |
| 30/73 | gettextize: git-commit advice messagesbuiltin/ | +6 | 0 replies | |
| 31/73 | gettextize: git-diff basic messagesbuiltin/ | +9 | 0 replies | |
| 32/73 | gettextize: git-fetch basic messagesbuiltin/ | +23 | 0 replies | |
| 33/73 | gettextize: git-fetch formatting messagesbuiltin/ t/ | +42 | 0 replies | |
| 34/73 | gettextize: git-fetch update_local_ref messagesbuiltin/ | +5 | 0 replies | |
| 35/73 | gettextize: git-fetch split up "(non-fast-forward)" messagebuiltin/ | +3 | 0 replies | |
| 36/73 | gettextize: git-grep basic messagesbuiltin/ | +16 | 0 replies | |
| 37/73 | gettextize: git-grep "--open-files-in-pager" messagebuiltin/ t/ | +2 | 0 replies | |
| 38/73 | gettextize: git-log basic messagesbuiltin/ | +31 | 0 replies | |
| 39/73 | gettextize: git-log "--OPT does not make sense" messagesbuiltin/ t/ | +4 | 0 replies | |
| 40/73 | gettextize: git-merge basic messagesbuiltin/ t/ t/ | +86 | 0 replies | |
| 41/73 | gettextize: git-merge "Updating %s..%s" messagebuiltin/ t/ | +5 | 0 replies | |
| 42/73 | gettextize: git-merge "You have not concluded your merge" messagest/ | +1 | 0 replies | |
| 43/73 | gettextize: git-merge "Wonderful" messagebuiltin/ t/ | +2 | 0 replies | |
| 44/73 | gettextize: git-mv basic messagesbuiltin/ | +8 | 0 replies | |
| 45/73 | gettextize: git-mv "bad" messagesbuiltin/ | +8 | 0 replies | |
| 46/73 | gettextize: git-rm basic messagesbuiltin/ | +11 | 0 replies | |
| 47/73 | gettextize: git-reset basic messagesbuiltin/ | +13 | 0 replies | |
| 48/73 | gettextize: git-reset reset_type_names messagesbuiltin/ | +7 | 0 replies | |
| 49/73 | gettextize: git-reset "Unstaged changes after reset" messagebuiltin/ t/ | +2 | 0 replies | |
| 50/73 | gettextize: git-tag basic messagesbuiltin/ | +30 | 0 replies | |
| 51/73 | gettextize: git-tag tag_template messagebuiltin/ t/ | +4 | 0 replies | |
| 52/73 | gettextize: git-push basic messagesbuiltin/ | +19 | 0 replies | |
| 53/73 | gettextize: git-push "prevent you from losing" messagebuiltin/ t/ t/ | +8 | 0 replies | |
| 54/73 | gettextize: git-status basic messagest/ t/ t/ +1 more | +119 | 0 replies | |
| 55/73 | gettextize: git-status "nothing to commit" messagest/ wt-status.c | +10 | 0 replies | |
| 56/73 | gettextize: git-status shortstatus messageswt-status.c | +6 | 0 replies | |
| 57/73 | gettextize: git-status "Changes to be committed" messaget/ wt-status.c | +11 | 0 replies | |
| 58/73 | gettextize: git-status "Initial commit" messaget/ wt-status.c | +6 | 0 replies | |
| 59/73 | gettextize: git-status "renamed: " messaget/ wt-status.c | +3 | 0 replies | |
| 60/73 | gettextize: git-archive basic messagesbuiltin/ | +7 | 0 replies | |
| 61/73 | gettextize: git-bundle basic messagesbuiltin/ | +3 | 0 replies | |
| 62/73 | gettextize: git-clean basic messagesbuiltin/ t/ t/ | +15 | 0 replies | |
| 63/73 | gettextize: git-clean clean.requireForce messagesbuiltin/ | +8 | 0 replies | |
| 64/73 | gettextize: git-describe basic messagesbuiltin/ t/ | +19 | 3 replies | |
| 65/73 | gettextize: git-gc basic messagesbuiltin/ | +5 | 0 replies | |
| 66/73 | gettextize: git-gc "Auto packing the repository" messagebuiltin/ | +7 | 0 replies | |
| 67/73 | gettextize: git-notes basic commandsbuiltin/ | +53 | 0 replies | |
| 68/73 | gettextize: git-notes GIT_NOTES_REWRITE_MODE error messagebuiltin/ | +4 | 0 replies | |
| 69/73 | gettextize: git-revert basic messagesbuiltin/ | +23 | 0 replies | |
| 70/73 | gettextize: git-revert "Your local changes" messagebuiltin/ t/ | +14 | 0 replies | |
| 71/73 | gettextize: git-revert literal "me" messagesbuiltin/ | +5 | 0 replies | |
| 72/73 | gettextize: git-revert split up "could not revert/apply" messagebuiltin/ t/ | +4 | 0 replies | |
| 73/73 | gettextize: git-shortlog basic messagesbuiltin/ | +4 | 0 replies |
Reviews trailers per patch
No Reviewed-by, Acked-by or Tested-by trailers for v4 yet.
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