Skip to content

Commit b96f67b

Browse files
committedJun 16, 2013
[ftools] Fix "Polygon from layer extent" (#8074)
1 parent 4b8f3c7 commit b96f67b

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed
 

‎python/plugins/fTools/tools/doGeometry.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -282,16 +282,16 @@ def runFinishedFromThread( self, success ):
282282
if success:
283283
if ( self.myFunction == 5 and self.chkWriteShapefile.isChecked() ) or self.myFunction != 5:
284284
addToTOC = QMessageBox.question( self, self.tr("Geometry"),
285-
self.tr( "Created output shapefile:\n%1\n%2\n\nWould you like to add the new layer to the TOC?" ).arg( unicode( self.shapefileName ) ).arg( extra ),
285+
self.tr( "Created output shapefile:\n{0}\n{1}\n\nWould you like to add the new layer to the TOC?" ).format( self.shapefileName, extra ),
286286
QMessageBox.Yes, QMessageBox.No, QMessageBox.NoButton )
287287
if addToTOC == QMessageBox.Yes:
288288
if not ftools_utils.addShapeToCanvas( unicode( self.shapefileName ) ):
289289
QMessageBox.warning( self, self.tr( "Geometry"),
290-
self.tr( "Error loading output shapefile:\n%1" ).arg( unicode( self.shapefileName ) ) )
290+
self.tr( "Error loading output shapefile:\n{0}" ).format( self.shapefileName ) )
291291
self.populateLayers()
292292
else:
293293
QMessageBox.information( self, self.tr( "Geometry" ),
294-
self.tr( "Layer '%1' updated" ).arg( self.inShape.currentText() ) )
294+
self.tr( "Layer '{0}' updated" ).format( self.inShape.currentText() ) )
295295
else:
296296
QMessageBox.warning( self, self.tr( "Geometry" ), self.tr( "Error writing output shapefile." ) )
297297

0 commit comments

Comments
 (0)