[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-devel
Subject: Re: dynamic string translation
From: Thomas Weber <eisenbahnstrasse () gmx ! de>
Date: 2006-09-25 17:59:50
Message-ID: 200609251959.50762.eisenbahnstrasse () gmx ! de
[Download RAW message or body]
Am Montag, 25. September 2006 17:53 schrieb Andras Mantia:
> On Monday 25 September 2006 18:58, Thomas Weber wrote:
> > > table_widget->addTab(table, i18n(categories.keys().at(index) ) );
> >
> > Stupid question:
> > How to convert QString& to const char* ?
>
> Depends, but as I wrote in the other mail, i18n expects utf8 char*, so:
> qstring.utf8() .
>
> Andras
I changed the code implementation as the following
categories[ I18N_NOOP( "Length" )] = &LengthUnits;
and
table_widget->addTab(table, i18n( categories.keys().at(index).toUtf8
().data() ));
To get a new message cataloge I entered
xgettext -ki18n *cpp -o messages.po
But unfortunately I do not know how the translation will work for "Length"?
Thomas
>> 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