@@ -57,7 +57,7 @@ QgsDiagramDialog::QgsDiagramDialog( QgsVectorLayer* vl ): mVectorLayer( vl )
5757 }
5858 }
5959
60- mClassificationTypeComboBox ->insertItem ( 0 , " linearly scaling" );
60+ mClassificationTypeComboBox ->insertItem ( 0 , tr ( " linearly scaling" ) );
6161
6262 // if mVectorLayer already has a diagram overlay, apply its settings to this dialog
6363 const QgsVectorOverlay* previousOverlay = mVectorLayer ->findOverlayByType ( " diagram" );
@@ -80,7 +80,7 @@ QgsDiagramDialog::~QgsDiagramDialog()
8080
8181void QgsDiagramDialog::on_mClassificationTypeComboBox_currentIndexChanged ( const QString& newType )
8282{
83- if ( newType == " linearly scaling" )
83+ if ( newType == tr ( " linearly scaling" ) )
8484 {
8585 QWidget* currentWidget = mWidgetStackRenderers ->currentWidget ();
8686 if ( currentWidget )
@@ -241,7 +241,7 @@ void QgsDiagramDialog::apply() const
241241 }
242242
243243 // remove already existing diagram overlays
244- mVectorLayer -> removeOverlay ( " diagram" );
244+ mVectorLayer ->removeOverlay ( " diagram" );
245245
246246 // finally add the new overlay to the vector layer
247247 mVectorLayer ->addOverlay ( diagramOverlay );
@@ -316,7 +316,7 @@ void QgsDiagramDialog::restoreSettings( const QgsVectorOverlay* overlay )
316316 mClassificationComboBox ->setCurrentIndex ( mClassificationComboBox ->findText ( classFieldName ) );
317317
318318 // classification type (specific for renderer subclass)
319- mClassificationTypeComboBox ->setCurrentIndex ( mClassificationTypeComboBox ->findText ( " linearly scaling" ) );
319+ mClassificationTypeComboBox ->setCurrentIndex ( mClassificationTypeComboBox ->findText ( tr ( " linearly scaling" ) ) );
320320 }
321321
322322 // apply the renderer settings to the renderer specific dialog
0 commit comments