Skip to content

Commit 1c9ece4

Browse files
author
jef
committedNov 8, 2009
add translation strings to diagram overlay plugin
git-svn-id: http://svn.osgeo.org/qgis/trunk@12022 c8812cc2-4d05-0410-92ff-de0c093fc19c
1 parent abe3093 commit 1c9ece4

File tree

2 files changed

+7
-7
lines changed

2 files changed

+7
-7
lines changed
 

‎src/plugins/diagram_overlay/qgsdiagramdialog.cpp

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -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

8181
void 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

‎src/plugins/diagram_overlay/qgsdiagramoverlayplugin.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -31,9 +31,9 @@
3131
#define QGISEXTERN extern "C"
3232
#endif
3333

34-
static const QString pluginName = "Diagram Overlay";
35-
static const QString pluginDescription = "A plugin for placing diagrams on vector layers";
36-
static const QString pluginVersion = "Version 0.0.1";
34+
static const QString pluginName = QObject::tr( "Diagram Overlay" );
35+
static const QString pluginDescription = QObject::tr( "A plugin for placing diagrams on vector layers" );
36+
static const QString pluginVersion = QObject::tr( "Version 0.0.1" );
3737

3838
QgsDiagramOverlayPlugin::QgsDiagramOverlayPlugin( QgisInterface* iface ): QObject(), QgsVectorOverlayPlugin( pluginName, pluginDescription, pluginVersion ), mInterface( iface )
3939
{

0 commit comments

Comments
 (0)
Please sign in to comment.