[Kalzium] KDE/kdeedu/kalzium/src

Pino Toscano toscano.pino at tiscali.it
Fri Jul 22 13:43:17 CEST 2005


SVN commit 437564 by pino:

i18n fixes.
Thanks Eloy.

CCMAIL: kalzium at kde.org


 M  +1 -1      detailinfodlg.cpp  
 M  +3 -5      spectrumwidget.cpp  


--- trunk/KDE/kdeedu/kalzium/src/detailinfodlg.cpp #437563:437564
@@ -38,7 +38,7 @@
 #include "spectrum.h"
 
 DetailedInfoDlg::DetailedInfoDlg( Element *el , QWidget *parent, const char *name)
-    : KDialogBase( IconList, "", User1|User2|Close, Close, parent, name, false/* non modal */, false, KGuiItem("Next", "1rightarrow"), KGuiItem("Previous", "1leftarrow"))
+    : KDialogBase( IconList, "", User1|User2|Close, Close, parent, name, false/* non modal */, false, KGuiItem(i18n("Next element", "Next"), "1rightarrow"), KGuiItem(i18n("Previous element", "Previous"), "1leftarrow"))
 {
 	m_data    = KalziumDataObject::instance();
 	m_element = el;
--- trunk/KDE/kdeedu/kalzium/src/spectrumwidget.cpp #437563:437564
@@ -397,13 +397,11 @@
 	QPixmap tmp( m_pixmap );
 	QString text;
 
-	if( m_type == EmissionSpectrum )	
-		text = i18n( "Emission spectrum of " );
+	if( m_type == EmissionSpectrum )
+		text = i18n( "Emission spectrum of %1" ).arg( m_spectrum->parentElement()->elname() );
 	else
-		text = i18n( "Absorption spectrum of " );
+		text = i18n( "Absorption spectrum of %1" ).arg( m_spectrum->parentElement()->elname() );
 
-	text.append( m_spectrum->parentElement()->elname() );
-
 	QPainter p( &tmp );
 	p.setPen( Qt::black );
 	p.drawText( 30, m_realHeight + 70, text );


More information about the Kalzium mailing list