translate the tool name as soon as we read it

svn path=/trunk/KDE/kdegraphics/okular/; revision=746523
This commit is contained in:
Pino Toscano 2007-12-09 12:15:57 +00:00
parent b30621c8ed
commit 4219c90f63

View file

@ -599,7 +599,7 @@ PageViewAnnotator::PageViewAnnotator( PageView * parent, Okular::Document * stor
{
AnnotationToolItem item;
item.id = toolElement.attribute("id").toInt();
item.text = toolElement.attribute("name");
item.text = i18n( toolElement.attribute( "name" ).toUtf8() );
item.pixmap = toolElement.attribute("pixmap");
QDomNode shortcutNode = toolElement.elementsByTagName( "shortcut" ).item( 0 );
if ( shortcutNode.isElement() )