bug-gnu-utils
[Top][All Lists]
Advanced

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

Re: Bug report: msgfmt -c doesn't fail for some incorrect C format plura


From: Bruno Haible
Subject: Re: Bug report: msgfmt -c doesn't fail for some incorrect C format plural forms
Date: Wed, 5 Oct 2005 21:03:18 +0200
User-agent: KMail/1.5

Roozbeh,

> > It is a little bit complicated to fix this also for the case nplurals > 1.
> > Therefore I'm fixing the problem only for nplurals = 1 (your case).

A fix for the case nplurals > 1 is in the works too.

> although finding which of the cases is/are infinite is hard,

Actually, finding which of the cases are infinite is not that hard.

> I guess to be more on the safe side msgfmt can check that *at least one*
> of the translations matches the format of msgid_plural. I don't know how
> hard that may be, of course.

Given the structure of the format checking code (where the strictness is
an input parameter), it would be necessary to check all msgstr[i] first
with lower strictness and then once again with higher strictness. This is
a bit clumsy, and the error message for the translator would still not be
optimal because it would not tell which msgstr[i] is wrong.

Bruno





reply via email to

[Prev in Thread] Current Thread [Next in Thread]