commit | 8f17f5b22ae54ecc3dfdafe33d7697e1bf3949f6 | [log] [tgz] |
---|---|---|
author | Jonathan Nieder <jrnieder@gmail.com> | Thu Dec 19 11:43:19 2013 -0800 |
committer | Junio C Hamano <gitster@pobox.com> | Wed Mar 12 14:08:05 2014 -0700 |
tree | 5900008650f4454d631c7a208cda388c9e5c8568 | |
parent | 335e8250124aea055cbe4fb8a2268fa9e2f34439 [diff] |
wt-status: i18n of section labels The original code assumes that: (1) the number of bytes written is the width of a string, so they can line up; (2) the "how" string is always <= 19 bytes. Neither of which we should assume. Using the same approach as the earlier 3651e45c (wt-status: take the alignment burden off translators, 2013-11-05), compute the necessary column width to hold the longest label and use that for alignment. cf. http://bugs.debian.org/725777 Signed-off-by: Jonathan Nieder <jrnieder@gmail.com> Helped-by: Sandy Carter Signed-off-by: Junio C Hamano <gitster@pobox.com>