[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-devel
Subject: Re: dynamic string translation
From: Krzysztof Lichota <krzysiek () lichota ! net>
Date: 2006-09-24 16:07:20
Message-ID: 4516AD38.4000509 () lichota ! net
[Download RAW message or body]
[Attachment #2 (multipart/signed)]
Thomas Weber napisaĆ(a):
>>> How to add this statement when the string is the second argument in this
>>> statement.
>>>
>>> table_widget->addTab(table, categories.keys().at(index) );
>> And where do you take values of categories.keys() from? If they are
>> already translated, then you have nothing to do.
>
> The contents to be translated are the keys of a QHash<QString,
> QList<UNITDESC>* >
>
> e.g.: categories["Length"] = &LengthUnits;
Then change it to:
categories[i18n("Length")] = &LengthUnits;
The keys will be then in translated form.
Krzysztof Lichota
["signature.asc" (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