Skip to content

status: allow label strings to be translated

Junio C Hamano git 1 version New

Get series with b4
b4 am [email protected]

Versions newest first

  1. v2 Latest4 patches 0 repliesNew

Patches in v2 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/4wt-status: make full label string to be subject to l10nwt-status.c+17 -180 replies
2/4wt-status: extract the code to compute width for labelswt-status.c+15 -70 replies
3/4wt-status: i18n of section labelswt-status.c+47 -190 replies
4/4wt-status: lift the artificual "at least 20 columns" floort/t7060-wtstatus.sh t/t7512-status-help.sh wt-status.c+13 -150 replies

Reviews trailers per patch

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

Read the v2 thread

Cover letter [PATCH v2 0/4] status: allow label strings to be translated

So here is my attempt to clean-up what Jonathan posted in $gmane/239537 as "how about this?" patch.

The first one (full label string) fixes up 3651e45c (wt-status: take the alignment burden off translators, 2013-11-05) to include colon back to translatable string again, while retaining its label alignment logic.

The second (extract the code) is taken from Jonathan's $gmane/239537 as a separate patch.

The third is essentially the remainder of Jonathan's $gmane/239537, with one small fix s/strlen/utf8_width/; to teach the code that shows unmerged paths the same label alignment logic Duy added in 3651e45c for the tracked paths, while retaining the "at least 20 columns" floor to avoid the churn to the tests.

And the last lifts the "at least 20 columns" floor.

Jonathan Nieder (2):
wt-status: extract the code to compute width for labels
wt-status: i18n of section labels

Junio C Hamano (2):
wt-status: make full label string to be subject to l10n
wt-status: lift the artificual "at least 20 columns" floor

 t/t7060-wtstatus.sh    |  14 +++---
 t/t7512-status-help.sh |  12 ++---
 wt-status.c            | 117 +++++++++++++++++++++++++++++++------------------
 3 files changed, 88 insertions(+), 55 deletions(-)
Signature · 1 line
1.9.0-293-gd838d6f