[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

Re: [patch] l10n crashes

From: Max Bowsher <maxb_at_ukf.net>
Date: 2005-09-03 19:10:47 CEST

Branko Čibej wrote:
> Peter Samuelson wrote:
>
>> The crash fixed in r15880 is not specific to pl.po. The same error, in
>> the same place, occurs in 3 other translations. This is true in both
>> trunk and 1.2.x.
>>
>> [[
>> Fix a crash due to an incorrect format string, in assorted po files.
>>
>> * subversion/po/it.po, subversion/po/pt_BR.po, subversion/po/zh_TW.po:
>> Fix a format string.
>> ]]
>>
>>
> Hm!
>
> I thought the gettext tools could verify that the format strings in the
> translated messages are correct? If they can, we should do this checking
> in a post-commit hook.

The problem is that they only check strings which xgettext has heuristically
determined to be format strings.

One major category which is not getting checked properly is:

  some_printf_like_function (_("Just a plain string with no format
characters));

Now, if a translation accidentally adds a % code, .... CRASH.

Not sure how best we can solve this.

Max.

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Sat Sep 3 19:11:34 2005

This is an archived mail posted to the Subversion Dev mailing list.

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.