From: Pino Toscano Date: Tue, 5 Jul 2005 13:49:06 +0000 (+0000) Subject: i18n improvements and some apidox comment X-Git-Tag: v3.4.90~12 X-Git-Url: https://git.rmz.fi/?a=commitdiff_plain;h=0e87a0d157153895fb99b13f5b136bd1e3cd44b6;p=libqmvoc.git i18n improvements and some apidox comment svn path=/trunk/KDE/kdeedu/libkdeedu/; revision=431890 --- diff --git a/Makefile.am b/Makefile.am index 112b95d..2fc3b28 100644 --- a/Makefile.am +++ b/Makefile.am @@ -1 +1,4 @@ SUBDIRS = kdeeducore kdeeduui kdeeduplot extdate + +messages: + $(XGETTEXT) `find . -name \*.h -o -name \*.cpp -o -name \*.cc` -o $(podir)/libkdeedu.pot diff --git a/kdeeduui/kdeeduglossary.cpp b/kdeeduui/kdeeduglossary.cpp index 8b6a967..d17987c 100644 --- a/kdeeduui/kdeeduglossary.cpp +++ b/kdeeduui/kdeeduglossary.cpp @@ -31,6 +31,7 @@ Glossary::Glossary() { + // setting a generic name for a new glossary m_name = i18n( "Glossary" ); } @@ -117,15 +118,12 @@ QValueList Glossary::readItems( QDomDocument &itemDocument ) desc.replace("[i]", "" ); desc.replace("[/i]", "" ); -// item->setName( i18n( nameNode.toElement( ).text().utf8() ) ); -// item->setDesc( i18n( desc.utf8() ) ); - item->setName( nameNode.toElement().text() ); - item->setDesc( desc ); + item->setName( i18n( nameNode.toElement( ).text().utf8() ) ); + item->setDesc( i18n( desc.utf8() ) ); refNodeList = refNode.elementsByTagName( "refitem" ); for ( uint it = 0; it < refNodeList.count(); it++ ) { -// reflist << i18n( refNodeList.item( it ).toElement().text().utf8() ); - reflist << refNodeList.item( it ).toElement().text(); + reflist << i18n( refNodeList.item( it ).toElement().text().utf8() ); } reflist.sort(); item->setRef( reflist ); @@ -176,7 +174,7 @@ GlossaryDialog::GlossaryDialog( QWidget *parent, const char *name) QSplitter *vs = new QSplitter( plainPage() ); vbox->addWidget( vs ); - + m_glosstree = new KListView( vs, "treeview" ); m_glosstree->addColumn( "entries" ); m_glosstree->header()->hide(); diff --git a/kdeeduui/kdeeduglossary.h b/kdeeduui/kdeeduglossary.h index e364ee3..1dd43e8 100644 --- a/kdeeduui/kdeeduglossary.h +++ b/kdeeduui/kdeeduglossary.h @@ -188,6 +188,11 @@ class GlossaryItem QStringList m_pic; }; +/** + * @class GlossaryDialog + * @author Pino Toscano + * @author Carsten Niehaus + */ class GlossaryDialog : public KDialogBase { Q_OBJECT @@ -200,6 +205,8 @@ class GlossaryDialog : public KDialogBase /** * add a new glossary + * + * @param newgloss the new glossary to add */ void addGlossary( Glossary* newgloss ); @@ -207,7 +214,7 @@ class GlossaryDialog : public KDialogBase QValueList m_glossaries; void updateTree(); - + KHTMLPart *m_htmlpart; QString m_htmlbasestring; QString m_picbasestring;