[qet] [3043] Bugfix:foliolist and shapeitem are now translated

[ Thread Index | Date Index | More lists.tuxfamily.org/qet Archives ]


Revision: 3043
Author:   scorpio810
Date:     2014-05-03 02:37:57 +0200 (Sat, 03 May 2014)
Log Message:
-----------
Bugfix:foliolist and shapeitem are now translated

Modified Paths:
--------------
    trunk/sources/diagramfoliolist.cpp
    trunk/sources/qetgraphicsitem/qetshapeitem.cpp

Modified: trunk/sources/diagramfoliolist.cpp
===================================================================
--- trunk/sources/diagramfoliolist.cpp	2014-05-02 18:14:42 UTC (rev 3042)
+++ trunk/sources/diagramfoliolist.cpp	2014-05-03 00:37:57 UTC (rev 3043)
@@ -238,10 +238,10 @@
  * @param row_RectF rectangle of header
  */
 void DiagramFolioList::fillHeader(QPainter *qp, const QRectF &row_RectF) {
-	QString authorTranslatable = tr("Auteur");
-	QString titleTranslatable = tr("Titre");
-	QString folioTranslatable = tr("Folio");
-	QString dateTranslatable = tr("Date");
+	QString authorTranslatable(QObject::tr("Auteur"));
+	QString titleTranslatable(QObject::tr("Titre"));
+	QString folioTranslatable(QObject::tr("Folio"));
+	QString dateTranslatable(QObject::tr("Date"));
 
 	qp->save();
 	qp->setFont(QETApp::diagramTextsFont(13));

Modified: trunk/sources/qetgraphicsitem/qetshapeitem.cpp
===================================================================
--- trunk/sources/qetgraphicsitem/qetshapeitem.cpp	2014-05-02 18:14:42 UTC (rev 3042)
+++ trunk/sources/qetgraphicsitem/qetshapeitem.cpp	2014-05-03 00:37:57 UTC (rev 3043)
@@ -202,16 +202,16 @@
 	QVBoxLayout dialog_layout(&property_dialog);
 
 	//GroupBox for resizer image
-	QGroupBox restyle_groupe(tr("Shape Line Style", "shape style"));
+	QGroupBox restyle_groupe(QObject::tr("Type de ligne", "shape style"));
 	dialog_layout.addWidget(&restyle_groupe);
 	QHBoxLayout restyle_layout(&restyle_groupe);
 
 	QComboBox style_combo(&property_dialog);
-	style_combo.addItem(tr("Normal"));
-	style_combo.addItem(tr("Tiret"));
-	style_combo.addItem(tr("Pointill\351"));
-	style_combo.addItem(tr("Traits et points"));
-	style_combo.addItem(tr("Traits points points"));
+	style_combo.addItem(QObject::tr("Normal"));
+	style_combo.addItem(QObject::tr("Tiret"));
+	style_combo.addItem(QObject::tr("Pointill\351"));
+	style_combo.addItem(QObject::tr("Traits et points"));
+	style_combo.addItem(QObject::tr("Traits points points"));
 
 	// The items have been added in order accordance with Qt::PenStyle.
 	style_combo.setCurrentIndex(int(_shapeStyle) - 1);


Mail converted by MHonArc 2.6.19+ http://listengine.tuxfamily.org/