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

List:       kde-i18n-doc
Subject:    Re: xi18n, frameworks and KStars
From:       Chusslove Illich <caslav.ilic () gmx ! net>
Date:       2014-11-29 22:44:59
Message-ID: 201411292344.59912.caslav.ilic () gmx ! net
[Download RAW message or body]


> [: Burkhard Lück :]
> What is the difference between i18n*() and xi18n*() and what's their use
> cases?

The difference is in the amount of processing done to the text. i18n*() only
replaces argument placeholders with values, if any. This is what most
programmers want. xi18n*() additionally process XML-like (KUIT) markup,
transforming text into target formats as instructed. There are some built in
tags and formats, and programmers can define new tags and target formats.
Few programmers have expressed desire for something like this.

The i18n*() from KDE 4 is in fact nearer to xi18n*() from KF5, only more lax
with respect to markup treatment. This was causing unexpected behavior for
many programmers who didn't want to use KUIT markup. Since KUIT markup was
used very little, in KF5 markup processing was removed from basic i18n*(),
and put into xi18n*().

-- 
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