Bugfix:foliolist and shapeitem are now translated

git-svn-id: svn+ssh://svn.tuxfamily.org/svnroot/qet/qet/trunk@3043 bfdf4180-ca20-0410-9c96-a3a8aa849046
This commit is contained in:
scorpio810
2014-05-03 00:37:57 +00:00
parent af22c5bc70
commit 3c3a7c9255
2 changed files with 10 additions and 10 deletions

View File

@@ -238,10 +238,10 @@ void DiagramFolioList::buildGrid(const QRectF &rect, int rows, int tables, qreal
* @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));

View File

@@ -202,16 +202,16 @@ void QetShapeItem::editProperty()
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);