Skip to content

Commit

Permalink
added a tr() based on feedback from jef-n
Browse files Browse the repository at this point in the history
  • Loading branch information
havatv committed Nov 2, 2018
1 parent 1fc2f7a commit 9c51f05
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions python/plugins/processing/algs/gdal/extractprojection.py
Expand Up @@ -94,8 +94,8 @@ def processAlgorithm(self, parameters, context, feedback):
raster = self.parameterAsRasterLayer(parameters, self.INPUT,
context)
if not raster.dataProvider().name() == 'gdal':
raise QgsProcessingException('This algorithm can only '
'be used with GDAL raster layers')
raise QgsProcessingException(self.tr('This algorithm can only '
'be used with GDAL raster layers'))
rasterPath = raster.source()
rasterDS = gdal.Open(rasterPath, gdal.GA_ReadOnly)
geotransform = rasterDS.GetGeoTransform()
Expand Down

0 comments on commit 9c51f05

Please sign in to comment.