File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
python/plugins/fTools/tools Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -282,16 +282,16 @@ def runFinishedFromThread( self, success ):
282
282
if success :
283
283
if ( self .myFunction == 5 and self .chkWriteShapefile .isChecked () ) or self .myFunction != 5 :
284
284
addToTOC = QMessageBox .question ( self , self .tr ("Geometry" ),
285
- self .tr ( "Created output shapefile:\n %1 \n %2 \n \n Would 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 \n Would you like to add the new layer to the TOC?" ).format ( self .shapefileName , extra ),
286
286
QMessageBox .Yes , QMessageBox .No , QMessageBox .NoButton )
287
287
if addToTOC == QMessageBox .Yes :
288
288
if not ftools_utils .addShapeToCanvas ( unicode ( self .shapefileName ) ):
289
289
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 ) )
291
291
self .populateLayers ()
292
292
else :
293
293
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 () ) )
295
295
else :
296
296
QMessageBox .warning ( self , self .tr ( "Geometry" ), self .tr ( "Error writing output shapefile." ) )
297
297
You can’t perform that action at this time.
0 commit comments