Skip to content

Commit 9c51f05

Browse files
authored
added a tr() based on feedback from jef-n
1 parent 1fc2f7a commit 9c51f05

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

python/plugins/processing/algs/gdal/extractprojection.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -94,8 +94,8 @@ def processAlgorithm(self, parameters, context, feedback):
9494
raster = self.parameterAsRasterLayer(parameters, self.INPUT,
9595
context)
9696
if not raster.dataProvider().name() == 'gdal':
97-
raise QgsProcessingException('This algorithm can only '
98-
'be used with GDAL raster layers')
97+
raise QgsProcessingException(self.tr('This algorithm can only '
98+
'be used with GDAL raster layers'))
9999
rasterPath = raster.source()
100100
rasterDS = gdal.Open(rasterPath, gdal.GA_ReadOnly)
101101
geotransform = rasterDS.GetGeoTransform()

0 commit comments

Comments
 (0)