Skip to content

Commit 37b5df7

Browse files
committedJun 17, 2013
[gdaltools] More SIP API updates
1 parent 4386860 commit 37b5df7

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed
 

‎python/plugins/GdalTools/GdalTools.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,9 +42,9 @@
4242
qgisUserPluginPath = os.path.abspath( os.path.join( unicode( QgsApplication.qgisSettingsDirPath() ), "python") )
4343
if not os.path.dirname(__file__).startswith( qgisUserPluginPath ):
4444
title = QCoreApplication.translate( "GdalTools", "Plugin error" )
45-
message = QCoreApplication.translate( "GdalTools", u'Unable to load %1 plugin. \nThe required "%2" module is missing. \nInstall it and try again.' )
45+
message = QCoreApplication.translate( "GdalTools", u'Unable to load {0} plugin. \nThe required "{1}" module is missing. \nInstall it and try again.' )
4646
import qgis.utils
47-
QMessageBox.warning( qgis.utils.iface.mainWindow(), title, message.arg( "GdalTools" ).arg( req_mods["osgeo"] ) )
47+
QMessageBox.warning( qgis.utils.iface.mainWindow(), title, message.format( "GdalTools", req_mods["osgeo"] ) )
4848
else:
4949
# if a module is missing show a more friendly module's name
5050
error_str = e.args[0]

‎python/plugins/GdalTools/tools/doProjection.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -148,7 +148,7 @@ def finished( self ):
148148
self.addLayerIntoCanvas( fileInfo )
149149
QMessageBox.information( self, self.tr( "Finished" ), self.tr( "Processing completed." ) )
150150
else:
151-
QMessageBox.warning( self, self.tr( "Warning" ), self.tr( "%1 not created." ).arg( outFn ) )
151+
QMessageBox.warning( self, self.tr( "Warning" ), self.tr( "{0} not created." ).format( outFn ) )
152152

153153
def getInputFileName(self):
154154
return self.inSelector.filename()

‎python/plugins/GdalTools/tools/widgetBatchBase.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -159,5 +159,5 @@ def batchFinished( self ):
159159
if len( notCreatedList ) == 0:
160160
QMessageBox.information( self, self.tr( "Finished" ), self.tr( "Operation completed." ) )
161161
else:
162-
QMessageBox.warning( self, self.tr( "Warning" ), self.tr( "The following files were not created: \n%1" ).arg( notCreatedList.join( ", " ) ) )
162+
QMessageBox.warning( self, self.tr( "Warning" ), self.tr( "The following files were not created: \n{0}" ).format( ', '.join( notCreatedList ) ) )
163163

0 commit comments

Comments
 (0)
Please sign in to comment.