Ralf Thielow <[email protected]> writes:
> On Fri, Sep 7, 2012 at 6:36 PM, Ralf Thielow <[email protected]> wrote:
>> On Fri, Sep 7, 2012 at 12:31 PM, Jiang Xin <[email protected]> wrote:
>>> I just notice that the 1st line of the orignal message below has
>>> only 56 characters, much shorter than other lines. It is because
>>> this is a warning message, and would add a prefix: "warning: ".
>>>
>>> #: builtin/push.c:151
>>> msgid ""
>>> "push.default is unset; its implicit value is changing in\n"
>>> "Git 2.0 from 'matching' to 'simple'. To squelch this message\n"
>>> "and maintain the current behavior after the default changes, use:\n"
>>> "\n"
>>> " git config --global push.default matching\n"
>>>
>>> For this reason, translations as follows are not well-formed.
>>> So I rewind git-po, and your commits may need a bit amend.
>>>
>>
>> I admit that I don't really understand what you mean. I can't
>> see a big difference in line lengths. It's not more than others
>
> I got it. This "warning: " is added automatically.
> Sorry
We may want to revisit this behaviour, by the way.
If you have a long string that barely happens to fit on a line with
"warning: " prefix in the original, your translation might want to
spell it in two lines, i.e.
warning(_("A quick brown fox jumps over the lazy dog."));
which gives
warning: A quick brown fox jumps over the lazy dog.<LF>
might want to turn into
warning("AA qquuiicckk bbrroowwnn ffooxx\n"
"jjuummppss oovveerr tthhee llaazzyy ddoogg.");
and currently gives:
wwaarrnniinngg: AA qquuiicckk bbrroowwnn ffooxx<LF>
jjuummppss oovveerr tthhee llaazzyy ddoogg.<LF>
But we may want to give
wwaarrnniinngg: AA qquuiicckk bbrroowwnn ffooxx<LF>
wwaarrnniinngg: jjuummppss oovveerr tthhee llaazzyy ddoogg.<LF>
instead.
Check out the way advice.c::advise() does its "hints: " prefix for
hints, but we probably would want to avoid anything that allocates
more memory in the die() codepath.
--
To unsubscribe from this list: send the line "unsubscribe git" in
the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html