Skip to content

Mark parseopt strings for translation

Nguyễn Thái Ngọc Duy git 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest65 patches 21 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/65i18n: parseopt: lookup help and argument translations when showing usageparse-options.c parse-options.h+25 -190 replies
2/65i18n: apply: mark parseopt strings for translationbuiltin/apply.c+31 -310 replies
3/65i18n: archive: mark parseopt strings for translationarchive.c builtin/archive.c+25 -2519 replies
4/65i18n: add: mark parseopt strings for translationbuiltin/add.c+13 -130 replies
5/65i18n: bisect--helper: mark parseopt strings for translationbuiltin/bisect--helper.c+3 -30 replies
6/65i18n: blame: mark parseopt strings for translationbuiltin/blame.c+23 -230 replies
7/65i18n: branch: mark parseopt strings for translationbuiltin/branch.c+27 -270 replies
8/65i18n: cat-file: mark parseopt strings for translationbuiltin/cat-file.c+10 -100 replies
9/65i18n: check-attr: mark parseopt strings for translationbuiltin/check-attr.c+6 -60 replies
10/65i18n: checkout-index: mark parseopt strings for translationbuiltin/checkout-index.c+12 -120 replies
11/65i18n: checkout: mark parseopt strings for translationbuiltin/checkout.c+20 -200 replies
12/65i18n: cherry: mark parseopt strings for translationbuiltin/log.c+2 -20 replies
13/65i18n: clean: mark parseopt strings for translationbuiltin/clean.c+9 -90 replies
14/65i18n: clone: mark parseopt strings for translationbuiltin/clone.c+28 -280 replies
15/65i18n: column: mark parseopt strings for translationbuiltin/column.c+8 -80 replies
16/65i18n: commit: mark parseopt strings for translationbuiltin/commit.c+38 -380 replies
17/65i18n: config: mark parseopt strings for translationbuiltin/config.c+28 -280 replies
18/65i18n: count-objects: mark parseopt strings for translationbuiltin/count-objects.c+2 -20 replies
19/65i18n: describe: mark parseopt strings for translationbuiltin/describe.c+14 -140 replies
20/65i18n: fast-export: mark parseopt strings for translationbuiltin/fast-export.c+14 -140 replies
21/65i18n: fetch: mark parseopt strings for translationbuiltin/fetch.c+24 -240 replies
22/65i18n: fmt-merge-msg: mark parseopt strings for translationbuiltin/fmt-merge-msg.c+8 -80 replies
23/65i18n: for-each-ref: mark parseopt strings for translationbuiltin/for-each-ref.c+9 -90 replies
24/65i18n: format-patch: mark parseopt strings for translationbuiltin/log.c+33 -330 replies
25/65i18n: fsck: mark parseopt strings for translationbuiltin/fsck.c+12 -120 replies
26/65i18n: gc: mark parseopt strings for translationbuiltin/gc.c+6 -60 replies
27/65i18n: grep: mark parseopt strings for translationbuiltin/grep.c+45 -450 replies
28/65i18n: hash-object: mark parseopt strings for translationbuiltin/hash-object.c+8 -80 replies
29/65i18n: help: mark parseopt strings for translationbuiltin/help.c+5 -50 replies
30/65i18n: init-db: mark parseopt strings for translationbuiltin/init-db.c+9 -90 replies
31/65i18n: log: mark parseopt strings for translationbuiltin/log.c+5 -50 replies
32/65i18n: ls-files: mark parseopt strings for translationbuiltin/ls-files.c+27 -270 replies
33/65i18n: ls-tree: mark parseopt strings for translationbuiltin/ls-tree.c+11 -110 replies
34/65i18n: merge-base: mark parseopt strings for translationbuiltin/merge-base.c+6 -60 replies
35/65i18n: merge-file: mark parseopt strings for translationbuiltin/merge-file.c+10 -100 replies
36/65i18n: merge: mark parseopt strings for translationbuiltin/merge.c+24 -240 replies
37/65i18n: mktree: mark parseopt strings for translationbuiltin/mktree.c+4 -40 replies
38/65i18n: mv: mark parseopt strings for translationbuiltin/mv.c+5 -50 replies
39/65i18n: name-rev: mark parseopt strings for translationbuiltin/name-rev.c+11 -110 replies
40/65i18n: notes: mark parseopt strings for translationbuiltin/notes.c+60 -600 replies
41/65i18n: pack-objects: mark parseopt strings for translationbuiltin/pack-objects.c+32 -320 replies
42/65i18n: pack-refs: mark parseopt strings for translationbuiltin/pack-refs.c+3 -30 replies
43/65i18n: prune-packed: mark parseopt strings for translationbuiltin/prune-packed.c+3 -30 replies
44/65i18n: prune: mark parseopt strings for translationbuiltin/prune.c+5 -50 replies
45/65i18n: push: mark parseopt strings for translationbuiltin/push.c+17 -170 replies
46/65i18n: read-tree: mark parseopt strings for translationbuiltin/read-tree.c+19 -190 replies
47/65i18n: remote: mark parseopt strings for translationbuiltin/remote.c+42 -420 replies
48/65i18n: replace: mark parseopt strings for translationbuiltin/replace.c+6 -60 replies
49/65i18n: status: mark parseopt strings for translationbuiltin/commit.c+11 -110 replies
50/65i18n: rerere: mark parseopt strings for translationbuiltin/rerere.c+2 -20 replies
51/65i18n: reset: mark parseopt strings for translationbuiltin/reset.c+10 -100 replies
52/65i18n: rev-parse: mark parseopt strings for translationbuiltin/rev-parse.c+9 -90 replies
53/65i18n: revert, cherry-pick: mark parseopt strings for translationbuiltin/revert.c+18 -180 replies
54/65i18n: rm: mark parseopt strings for translationbuiltin/rm.c+7 -70 replies
55/65i18n: shortlog: mark parseopt strings for translationbuiltin/shortlog.c+7 -70 replies
56/65i18n: show-branch: mark parseopt strings for translationbuiltin/show-branch.c+21 -210 replies
57/65i18n: show-ref: mark parseopt strings for translationbuiltin/show-ref.c+14 -140 replies
58/65i18n: symbolic-ref: mark parseopt strings for translationbuiltin/symbolic-ref.c+4 -40 replies
59/65i18n: tag: mark parseopt strings for translationbuiltin/tag.c+28 -280 replies
60/65i18n: update-index: mark parseopt strings for translationbuiltin/update-index.c+27 -270 replies
61/65i18n: update-ref: mark parseopt strings for translationbuiltin/update-ref.c+5 -50 replies
62/65i18n: update-server-info: mark parseopt strings for translationbuiltin/update-server-info.c+2 -20 replies
63/65i18n: verify-pack: mark parseopt strings for translationbuiltin/verify-pack.c+3 -30 replies
64/65i18n: verify-tag: mark parseopt strings for translationbuiltin/verify-tag.c+2 -20 replies
65/65i18n: write-tree: mark parseopt strings for translationbuiltin/write-tree.c+5 -50 replies

Reviews trailers per patch

1 of 65 patches has a Reviewed-by or Acked-by.

PatchJonathan Nieder
1/65
2/65
3/65R-b
4/65
5/65
6/65
7/65
8/65
9/65
10/65
11/65
12/65
13/65
14/65
15/65
16/65
17/65
18/65
19/65
20/65
21/65
22/65
23/65
24/65
25/65
26/65
27/65
28/65
29/65
30/65
31/65
32/65
33/65
34/65
35/65
36/65
37/65
38/65
39/65
40/65
41/65
42/65
43/65
44/65
45/65
46/65
47/65
48/65
49/65
50/65
51/65
52/65
53/65
54/65
55/65
56/65
57/65
58/65
59/65
60/65
61/65
62/65
63/65
64/65
65/65

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v1 thread

Cover letter [PATCH 00/65] Mark parseopt strings for translation

The main code change is in the first patch, which enables parseopt to use gettext(). The rest is a bunch of N_(). I only post 2 patches here. The rest can be found at

https://github.com/pclouds/git/commits/parseopt-i18n

About 1000 strings are marked for translation in this series. Shell-based parseopt is not supported because I don't know how to mark strings in shell scripts.

I suggest to merge this series (once it passes the review) in a quiet time in next. Then I'll add additional patches to all topics in pu that touch parseopt and keep doing so until the series graduates to master.

Surprisingly, this series (based on master) does not cause any conflicts with pu. So now may be a good time.

Nguyễn Thái Ngọc Duy (65):
i18n: parseopt: lookup help and argument translations when showing
usage
i18n: apply: mark parseopt strings for translation
i18n: archive: mark parseopt strings for translation
i18n: add: mark parseopt strings for translation
i18n: bisect--helper: mark parseopt strings for translation
i18n: blame: mark parseopt strings for translation
i18n: branch: mark parseopt strings for translation
i18n: cat-file: mark parseopt strings for translation
i18n: check-attr: mark parseopt strings for translation
i18n: checkout-index: mark parseopt strings for translation
i18n: checkout: mark parseopt strings for translation
i18n: cherry: mark parseopt strings for translation
i18n: clean: mark parseopt strings for translation
i18n: clone: mark parseopt strings for translation
i18n: column: mark parseopt strings for translation
i18n: commit: mark parseopt strings for translation
i18n: config: mark parseopt strings for translation
i18n: count-objects: mark parseopt strings for translation
i18n: describe: mark parseopt strings for translation
i18n: fast-export: mark parseopt strings for translation
i18n: fetch: mark parseopt strings for translation
i18n: fmt-merge-msg: mark parseopt strings for translation
i18n: for-each-ref: mark parseopt strings for translation
i18n: format-patch: mark parseopt strings for translation
i18n: fsck: mark parseopt strings for translation
i18n: gc: mark parseopt strings for translation
i18n: grep: mark parseopt strings for translation
i18n: hash-object: mark parseopt strings for translation
i18n: help: mark parseopt strings for translation
i18n: init-db: mark parseopt strings for translation
i18n: log: mark parseopt strings for translation
i18n: ls-files: mark parseopt strings for translation
i18n: ls-tree: mark parseopt strings for translation
i18n: merge-base: mark parseopt strings for translation
i18n: merge-file: mark parseopt strings for translation
i18n: merge: mark parseopt strings for translation
i18n: mktree: mark parseopt strings for translation
i18n: mv: mark parseopt strings for translation
i18n: name-rev: mark parseopt strings for translation
i18n: notes: mark parseopt strings for translation
i18n: pack-objects: mark parseopt strings for translation
i18n: pack-refs: mark parseopt strings for translation
i18n: prune-packed: mark parseopt strings for translation
i18n: prune: mark parseopt strings for translation
i18n: push: mark parseopt strings for translation
i18n: read-tree: mark parseopt strings for translation
i18n: remote: mark parseopt strings for translation
i18n: replace: mark parseopt strings for translation
i18n: status: mark parseopt strings for translation
i18n: rerere: mark parseopt strings for translation
i18n: reset: mark parseopt strings for translation
i18n: rev-parse: mark parseopt strings for translation
i18n: revert, cherry-pick: mark parseopt strings for translation
i18n: rm: mark parseopt strings for translation
i18n: shortlog: mark parseopt strings for translation
i18n: show-branch: mark parseopt strings for translation
i18n: show-ref: mark parseopt strings for translation
i18n: symbolic-ref: mark parseopt strings for translation
i18n: tag: mark parseopt strings for translation
i18n: update-index: mark parseopt strings for translation
i18n: update-ref: mark parseopt strings for translation
i18n: update-server-info: mark parseopt strings for translation
i18n: verify-pack: mark parseopt strings for translation
i18n: verify-tag: mark parseopt strings for translation
i18n: write-tree: mark parseopt strings for translation

 archive.c                    |   38 +++++++-------
 builtin/add.c                |   26 +++++-----
 builtin/apply.c              |   62 +++++++++++-----------
 builtin/archive.c            |   12 ++--
 builtin/bisect--helper.c     |    6 +-
 builtin/blame.c              |   46 ++++++++--------
 builtin/branch.c             |   54 +++++++++---------
 builtin/cat-file.c           |   20 ++++----
 builtin/check-attr.c         |   12 ++--
 builtin/checkout-index.c     |   24 ++++----
 builtin/checkout.c           |   40 +++++++-------
 builtin/clean.c              |   18 +++---
 builtin/clone.c              |   56 ++++++++++----------
 builtin/column.c             |   16 +++---
 builtin/commit.c             |   98 +++++++++++++++++-----------------
 builtin/config.c             |   56 ++++++++++----------
 builtin/count-objects.c      |    4 +-
 builtin/describe.c           |   28 +++++-----
 builtin/fast-export.c        |   28 +++++-----
 builtin/fetch.c              |   48 ++++++++--------
 builtin/fmt-merge-msg.c      |   16 +++---
 builtin/for-each-ref.c       |   18 +++---
 builtin/fsck.c               |   24 ++++----
 builtin/gc.c                 |   12 ++--
 builtin/grep.c               |   90 ++++++++++++++++----------------
 builtin/hash-object.c        |   16 +++---
 builtin/help.c               |   10 ++--
 builtin/init-db.c            |   18 +++---
 builtin/log.c                |   80 ++++++++++++++--------------
 builtin/ls-files.c           |   54 +++++++++---------
 builtin/ls-tree.c            |   22 ++++----
 builtin/merge-base.c         |   12 ++--
 builtin/merge-file.c         |   20 ++++----
 builtin/merge.c              |   48 ++++++++--------
 builtin/mktree.c             |    8 ++--
 builtin/mv.c                 |   10 ++--
 builtin/name-rev.c           |   22 ++++----
 builtin/notes.c              |  120 +++++++++++++++++++++---------------------
 builtin/pack-objects.c       |   64 +++++++++++-----------
 builtin/pack-refs.c          |    6 +-
 builtin/prune-packed.c       |    6 +-
 builtin/prune.c              |   10 ++--
 builtin/push.c               |   34 ++++++------
 builtin/read-tree.c          |   38 +++++++-------
 builtin/remote.c             |   84 +++++++++++++++---------------
 builtin/replace.c            |   12 ++--
 builtin/rerere.c             |    4 +-
 builtin/reset.c              |   20 ++++----
 builtin/rev-parse.c          |   18 +++---
 builtin/revert.c             |   36 ++++++------
 builtin/rm.c                 |   14 +++---
 builtin/shortlog.c           |   14 +++---
 builtin/show-branch.c        |   42 +++++++-------
 builtin/show-ref.c           |   28 +++++-----
 builtin/symbolic-ref.c       |    8 ++--
 builtin/tag.c                |   56 ++++++++++----------
 builtin/update-index.c       |   54 +++++++++---------
 builtin/update-ref.c         |   10 ++--
 builtin/update-server-info.c |    4 +-
 builtin/verify-pack.c        |    6 +-
 builtin/verify-tag.c         |    4 +-
 builtin/write-tree.c         |   10 ++--
 parse-options.c              |   19 ++++---
 parse-options.h              |   25 +++++----
 64 files changed, 962 insertions(+), 956 deletions(-)
Signature · 1 line
1.7.8.36.g69ee2