Re: [PATCH 24/25] gettextize: git-status basic messages

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Ævar Arnfjörð Bjarmason wrote:

> Maybe, but my current mode of operation is "do it really simple and
> stupid now, solicit complaints later".
> 
> Eventually I'd rather just eliminate the need for tweaking stuff like
> that by having some va_args function that spews out "16" for that
> given a bunch of arguments, i.e. (pseudocode):
> 
>     int width = gimme_longest(
>         _("both deleted:"),
>         _("added by us:"),
>         _("deleted by them:"),
>         _("added by them:"),
>         _("deleted by us:"),
>         _("both added:"),
>         _("both modified:")
>     );
> 
>     char *fmt = concat("%-", width + 4, "s%s\n");
>     printf(fmt, ...)

Using %-*s%s like that does sound nice, but then I have to wonder
about the 4.  Maybe the space-constrained translator would want to
decrease the margin to 2.

Which is why "when the output is intended for humans, let translators
do whatever they want" seems to me like the simplest principle to
follow.  But you're right that it doesn't matter much and we can
always wait for bug reports.
--
To unsubscribe from this list: send the line "unsubscribe git" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[Index of Archives]     [Linux Kernel Development]     [Gcc Help]     [IETF Annouce]     [DCCP]     [Netdev]     [Networking]     [Security]     [V4L]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux SCSI]     [Fedora Users]