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

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

Re: [Translation-i18n] Handling qt-format in gettext tools (was: Updatin


From: Chusslove Illich
Subject: Re: [Translation-i18n] Handling qt-format in gettext tools (was: Updating qt-format handling?)
Date: Tue, 4 Sep 2007 16:39:53 +0200
User-agent: KMail/1.9.5

> [: Bruno Haible :]
> The written specification is not enough. You also need to look into the
> source code. As far as I can see, the initial comment in format-qt.c needs
> to be changed as follows: [...]

Hm, indeed. I would only use this wording for unterminated directives:

  Directives cannot be escaped, hence '%' or '%L' not followed by a digit
  is not an error, but a verbatim segment of the text.

> [: Bruno Haible :]
> So, effectively we have two kinds of Qt format strings: [...] The
> translator must not give a translation of the second kind for an msgid of
> the first kind.

How about only insisting on exact match for the directives? E.g. if there is
%1 in the msgid, translator cannot use any of %L1, %01, or %L01, and other
ways around. The only change in the format parser for this is to consider
%0n as directives 100-109, so that they are different from %n.

> [: Bruno Haible :]
> I would appreciate a patch that takes into account the finding for 1. + 2.
> mentioned above.

One with the two tweaks above is attached (also a few extra format tests for
make check).

> [: Bruno Haible :]
> As you can see, I haven't found the time to do these changes in 4 months.

No problem, KDE4 has been anyway delayed until the end of the year :)

-- 
Chusslove Illich (Часлав Илић)

Attachment: qt-format-update-2.diff
Description: Text Data

Attachment: pgpXrp49r7vha.pgp
Description: PGP signature


reply via email to

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