[Kalzium] KDE/kdeedu/kalzium/src

Eloy Cuadra ecuadra at eloihr.net
Thu Jul 21 18:48:49 CEST 2005


On Thursday 21 July 2005 16:26, Pino Toscano wrote:
> SVN commit 437314 by pino:
>
> Read and store the 'origin of the name' of every element directly
> translated.
>
> Eloy, please could you check if this fixed the issue you reported?
>
> CCMAIL: kalzium at kde.org
>
>
>  M  +1 -1      kalziumdataobject.cpp
>
>
> --- trunk/KDE/kdeedu/kalzium/src/kalziumdataobject.cpp #437313:437314
> @@ -105,7 +105,7 @@
>
>  		QDomElement nameE = domElement.namedItem( "name" ).toElement();
>  		QString name = nameE.text();
> -		QString origin = nameE.attributeNode( "origin" ).value();
> +		QString origin = i18n( nameE.attributeNode( "origin" ).value().utf8() );
>
>  		QString block = domElement.namedItem( "block" ).toElement().text();
>  		QString group = domElement.namedItem( "group" ).toElement().text();

Yes, it works. But, is it safe? Is it possible to put a variable as the first 
argument in a i18n() function?

-- 
Eloy Cuadra
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
Url : http://mail.kde.org/pipermail/kalzium/attachments/20050721/37c2bb0a/attachment.pgp


More information about the Kalzium mailing list