From: Pino Toscano Date: Sat, 22 Oct 2005 23:29:27 +0000 (+0000) Subject: Translate the description at the right point. X-Git-Tag: v3.5.0~1 X-Git-Url: https://git.rmz.fi/?a=commitdiff_plain;h=4fb412d269baf05c3905868e562a209d109bb8cc;p=libqmvoc.git Translate the description at the right point. CCBUG: 114882 svn path=/branches/KDE/3.5/kdeedu/libkdeedu/; revision=473231 --- 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++ ) {