wt-status: make full label string to be subject to l10n
commitd52cb5761a0e92e6051ea92edc7ae96fb6dca78f
authorJunio C Hamano <gitster@pobox.com>
Wed, 12 Mar 2014 20:51:22 +0000 (12 13:51 -0700)
committerJunio C Hamano <gitster@pobox.com>
Wed, 12 Mar 2014 21:07:30 +0000 (12 14:07 -0700)
tree89fd1c1b26d9e2b067fb49e21d1c349c41e91834
parent5f95c9f850b19b368c43ae399cc831b17a26a5ac
wt-status: make full label string to be subject to l10n

Earlier in 3651e45c (wt-status: take the alignment burden off
translators, 2013-11-05), we assumed that it is OK to make the
string before the colon in a label string we give as the section
header of various kinds of changes (e.g. "new file:") translatable.

This assumption apparently does not hold for some languages,
e.g. ones that want to have spaces around the colon.

Also introduce a static label_width to avoid having to run
strlen(padding) over and over.

Signed-off-by: Junio C Hamano <gitster@pobox.com>
wt-status.c