@@ -57,7 +57,7 @@ QgsDiagramDialog::QgsDiagramDialog( QgsVectorLayer* vl ): mVectorLayer( vl )
57
57
}
58
58
}
59
59
60
- mClassificationTypeComboBox ->insertItem ( 0 , " linearly scaling" );
60
+ mClassificationTypeComboBox ->insertItem ( 0 , tr ( " linearly scaling" ) );
61
61
62
62
// if mVectorLayer already has a diagram overlay, apply its settings to this dialog
63
63
const QgsVectorOverlay* previousOverlay = mVectorLayer ->findOverlayByType ( " diagram" );
@@ -80,7 +80,7 @@ QgsDiagramDialog::~QgsDiagramDialog()
80
80
81
81
void QgsDiagramDialog::on_mClassificationTypeComboBox_currentIndexChanged ( const QString& newType )
82
82
{
83
- if ( newType == " linearly scaling" )
83
+ if ( newType == tr ( " linearly scaling" ) )
84
84
{
85
85
QWidget* currentWidget = mWidgetStackRenderers ->currentWidget ();
86
86
if ( currentWidget )
@@ -241,7 +241,7 @@ void QgsDiagramDialog::apply() const
241
241
}
242
242
243
243
// remove already existing diagram overlays
244
- mVectorLayer -> removeOverlay ( " diagram" );
244
+ mVectorLayer ->removeOverlay ( " diagram" );
245
245
246
246
// finally add the new overlay to the vector layer
247
247
mVectorLayer ->addOverlay ( diagramOverlay );
@@ -316,7 +316,7 @@ void QgsDiagramDialog::restoreSettings( const QgsVectorOverlay* overlay )
316
316
mClassificationComboBox ->setCurrentIndex ( mClassificationComboBox ->findText ( classFieldName ) );
317
317
318
318
// classification type (specific for renderer subclass)
319
- mClassificationTypeComboBox ->setCurrentIndex ( mClassificationTypeComboBox ->findText ( " linearly scaling" ) );
319
+ mClassificationTypeComboBox ->setCurrentIndex ( mClassificationTypeComboBox ->findText ( tr ( " linearly scaling" ) ) );
320
320
}
321
321
322
322
// apply the renderer settings to the renderer specific dialog
0 commit comments