From 4fb412d269baf05c3905868e562a209d109bb8cc Mon Sep 17 00:00:00 2001 From: Pino Toscano Date: Sat, 22 Oct 2005 23:29:27 +0000 Subject: [PATCH] Translate the description at the right point. CCBUG: 114882 svn path=/branches/KDE/3.5/kdeedu/libkdeedu/; revision=473231 --- kdeeduui/kdeeduglossary.cpp | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/kdeeduui/kdeeduglossary.cpp b/kdeeduui/kdeeduglossary.cpp index 9d126db..41b6f24 100644 --- a/kdeeduui/kdeeduglossary.cpp +++ b/kdeeduui/kdeeduglossary.cpp @@ -130,7 +130,7 @@ QValueList Glossary::readItems( QDomDocument &itemDocument ) QString picName = itemElement.namedItem( "picture" ).toElement().text(); QDomElement refNode = ( const QDomElement& ) itemElement.namedItem( "references" ).toElement(); - QString desc = descNode.toElement().text(); + QString desc = i18n( descNode.toElement().text().utf8() ); if ( !picName.isEmpty() ) desc.prepend("[img]"+picName +"[/img]" ); @@ -146,8 +146,6 @@ QValueList Glossary::readItems( QDomDocument &itemDocument ) item->setDesc( item->desc().replace("[/sup]", "" ) ); item->setDesc( item->desc().replace("[br]", "
" ) ); - item->setDesc( i18n( item->desc().utf8() ) ); - refNodeList = refNode.elementsByTagName( "refitem" ); for ( uint it = 0; it < refNodeList.count(); it++ ) { -- 2.47.3