[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-i18n-doc
Subject:    A note on proliferation kde-* format flags in catalogs
From:       Chusslove Illich <caslav.ilic () gmx ! net>
Date:       2016-11-26 23:35:33
Message-ID: cd36164c-9d10-86ec-c6c1-31154c948aa7 () gmx ! net
[Download RAW message or body]

[Attachment #2 (multipart/mixed)]


Hi,

Since the move to the new l10n server apparently also a newer Gettext
package is used, and this had the result that now just about all
messages throughout catalogs have kde-format flags, and some
kde-kuit-format flags.

The reason for this is that this is actually semantically correct.
Unlike with other format types (e.g. c-format), every Ki18n message is a
"format-applying" message, in the sense that Ki18n will at runtime do
some interpretation on it. For example, now seeing kde-format flag the
translator knows for sure that the message can be scripted
(Transcript), and seeing the kde-kuit-format flag that semantic tags
(KUIT) can be used in it. Also the checker tools can now decide what to
do based on the format flag.

The current Gettext maintainer, Daiki Ueno, was very kind some time ago
to implement this. xgettext in --kde mode will now recognize all
standard Ki18n call names (no need for the long list of -k options any
more), and set the appropriate format flag according to call name
(kde-format for *i18n* calls and kde-kuit-format for *xi18n* calls).

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


["signature.asc" (application/pgp-signature)]

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic