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

List:       kde-devel
Subject:    Re: dynamic string translation
From:       Andras Mantia <amantia () kde ! org>
Date:       2006-09-24 16:07:59
Message-ID: 200609241908.06703.amantia () kde ! org
[Download RAW message or body]

[Attachment #2 (multipart/signed)]


On Sunday 24 September 2006 19:08, Thomas Weber wrote:
> e.g.:  categories["Length"]      = &LengthUnits;

If you know the possible keys in advance, you can create fake strings 
like
QString fake1 = i18n("Length");
and later use i18n(categories.keys().at(index).utf8()) [don't forget the 
utf8()!).
Or you store them in an external file and make sure the messages target 
in Makefile extracts the key names, so they get translated.

 If you don't know the key names in advance, I would say this is not 
possible to do in a right way.

Andras
-- 
Quanta Plus developer - http://quanta.kdewebdev.org
K Desktop Environment - http://www.kde.org

[Attachment #5 (application/pgp-signature)]

>> Visit http://mail.kde.org/mailman/listinfo/kde-devel#unsub to unsubscribe <<


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

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