[Kdenlive-devel] RTL Localisation issues
Carsten Pfeiffer
carsten.pfeiffer at alumni.tu-berlin.de
Tue Nov 14 09:29:33 UTC 2006
On Tuesday 14 November 2006 10:15, Jean-Michel Pouré wrote:
Hi,
> In Projectlist.ccp filen the following code does not work in RTL
> languages. It may also not work in LTR languages where you might say
> "bytes(s) X".
>
> text = QString::number(fileSize) + i18n(" byte(s)");
> text = QString::number(fileSize) + i18n(" Kb");
>
> We should rather code them:
>
> i18n("%i byte(s)").blablabla
> i18n("%i Kb").blablabla
>
> Please tell me how to code them, and I will make the needed changes.
Please simply use KIO::convertSize(fileSize)
(you need to #include <kio/global.h>)
Otherwise for plural forms use something like
i18n("Foo %1, Bar %2").arg(foo).arg(bar)
Cheers,
Carsten
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 447 bytes
Desc: not available
URL: <http://mail.kde.org/pipermail/kdenlive/attachments/20061114/bf397e46/attachment.sig>
More information about the Kdenlive
mailing list