[Top][All Lists]
[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 (Часлав Илић)
qt-format-update-2.diff
Description: Text Data
pgpXrp49r7vha.pgp
Description: PGP signature
- Re: Handling qt-format in gettext tools (was: Updating qt-format handling?), Bruno Haible, 2007/09/04
- Re: [Translation-i18n] Handling qt-format in gettext tools (was: Updating qt-format handling?),
Chusslove Illich <=
- Re: [Translation-i18n] Handling qt-format in gettext tools (was: Updating qt-format handling?), Bruno Haible, 2007/09/09
- Re: [Translation-i18n] Handling qt-format in gettext tools (was: Updating qt-format handling?), Chusslove Illich, 2007/09/10
- Re: [Translation-i18n] Handling qt-format in gettext tools (was: Updating qt-format handling?), Bruno Haible, 2007/09/10
- Re: [Translation-i18n] Handling qt-format in gettext tools (was: Updating qt-format handling?), Chusslove Illich, 2007/09/10
- Re: [Translation-i18n] Handling qt-format in gettext tools (was: Updating qt-format handling?), Bruno Haible, 2007/09/10
- Re: [Translation-i18n] Handling qt-format in gettext tools (was: Updating qt-format handling?), Chusslove Illich, 2007/09/11