Summary: | Some strings in the glossary are not translated | ||
---|---|---|---|
Product: | [Applications] kalzium | Reporter: | Francesco Bresciani <fbresciani> |
Component: | general | Assignee: | Kalzium Developers <kalzium> |
Status: | RESOLVED FIXED | ||
Severity: | normal | ||
Priority: | NOR | ||
Version: | unspecified | ||
Target Milestone: | --- | ||
Platform: | unspecified | ||
OS: | Linux | ||
Latest Commit: | Version Fixed In: | ||
Sentry Crash Report: |
Description
Francesco Bresciani
2005-10-22 18:50:36 UTC
SVN commit 473231 by pino: Translate the description at the right point. CCBUG: 114882 M +1 -3 kdeeduglossary.cpp --- branches/KDE/3.5/kdeedu/libkdeedu/kdeeduui/kdeeduglossary.cpp #473230:473231 @@ -130,7 +130,7 @@ 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 @@ item->setDesc( item->desc().replace("[/sup]", "</sup>" ) ); item->setDesc( item->desc().replace("[br]", "<br />" ) ); - item->setDesc( i18n( item->desc().utf8() ) ); - refNodeList = refNode.elementsByTagName( "refitem" ); for ( uint it = 0; it < refNodeList.count(); it++ ) { SVN commit 473233 by pino: Forwardport: translate the description at the right point. BUG: 114882 M +1 -1 kdeeduglossary.cpp --- trunk/KDE/kdeedu/libkdeedu/kdeeduui/kdeeduglossary.cpp #473232:473233 @@ -162,7 +162,7 @@ QString picName = itemElement.namedItem( "picture" ).toElement().text(); QDomElement refNode = ( const QDomElement& ) itemElement.namedItem( "references" ).toElement(); - QString desc = descNode.toElement().text().toUtf8(); + QString desc = i18n( descNode.toElement().text().toUtf8() ); if ( !picName.isEmpty() ) desc.prepend("[img]"+picName +"[/img][brclear][br]" ); "References" string in glossary is still not translated. There are also some other entries still not translated (ie. electron, magnetic moment). Is this due to kdelibs that can not handle properly msgid's with non latin1 characters, as for Bug#: 123118 ? In that case feel free to close this report again. SVN commit 516076 by pino: Load also the libkdeedu catalog. BUG: 114882 M +3 -0 kalzium.cpp --- trunk/KDE/kdeedu/kalzium/src/kalzium.cpp #516075:516076 @@ -93,6 +93,9 @@ setupSidebars(); setupActions(); + // adding the libkdeedu catalog + KGlobal::locale()->insertCatalog( "libkdeedu" ); + // creating the glossary dialog and loading the glossaries we have m_glossarydlg = new GlossaryDialog( true, this ); m_glossarydlg->setObjectName( QLatin1String( "glossary" ) ); > There are also some other entries still not translated (ie. electron, > magnetic moment). > > Is this due to kdelibs that can not handle properly msgid's with non latin1 > characters, as for Bug#: 123118 ? Yes, forgot to say that those entries contains non-Latin1 characters, so they suffer of the same issue as bug #123118. |