Skip to content
Permalink
Browse files

Translation fixes for GDAL build VRT.

  • Loading branch information
ajolma authored and nyalldawson committed Mar 11, 2018
1 parent 3fff872 commit 64d5193f2096512b21507f9ba09d1ed4a7f2f036
@@ -27,6 +27,7 @@

import os

from qgis.PyQt.QtCore import QCoreApplication
from qgis.PyQt.QtGui import QIcon

from qgis.core import (QgsProcessing,
@@ -74,31 +75,31 @@ def defaultFileExtension(self):
return 'vrt'

self.addParameter(QgsProcessingParameterMultipleLayers(self.INPUT,
self.tr('Input layers'),
QCoreApplication.translate("ParameterVrtDestination", 'Input layers'),
QgsProcessing.TypeRaster))
self.addParameter(QgsProcessingParameterEnum(self.RESOLUTION,
self.tr('Resolution'),
QCoreApplication.translate("ParameterVrtDestination", 'Resolution'),
options=self.RESOLUTION_OPTIONS,
defaultValue=0))
self.addParameter(QgsProcessingParameterBoolean(self.SEPARATE,
self.tr('Layer stack'),
QCoreApplication.translate("ParameterVrtDestination", 'Layer stack'),
defaultValue=True))
self.addParameter(QgsProcessingParameterBoolean(self.PROJ_DIFFERENCE,
self.tr('Allow projection difference'),
QCoreApplication.translate("ParameterVrtDestination", 'Allow projection difference'),
defaultValue=False))
self.addParameter(ParameterVrtDestination(self.OUTPUT, self.tr('Virtual')))
self.addParameter(ParameterVrtDestination(self.OUTPUT, QCoreApplication.translate("ParameterVrtDestination", 'Virtual')))

def name(self):
return 'buildvirtualraster'

def displayName(self):
return self.tr('Build Virtual Raster')
return QCoreApplication.translate("buildvrt", 'Build Virtual Raster')

def icon(self):
return QIcon(os.path.join(pluginPath, 'images', 'gdaltools', 'vrt.png'))

def group(self):
return self.tr('Raster miscellaneous')
return QCoreApplication.translate("buildvrt", 'Raster miscellaneous')

def groupId(self):
return 'rastermiscellaneous'
@@ -164,7 +164,7 @@ def initWidgets(self):
self.layoutMain.insertWidget(self.layoutMain.count() - 1, widget)
if isinstance(output, (QgsProcessingParameterRasterDestination, QgsProcessingParameterFeatureSink, QgsProcessingParameterVectorDestination)):
check = QCheckBox()
check.setText(self.tr('Open output file after running algorithm'))
check.setText(QCoreApplication.translate('ParametersPanel', 'Open output file after running algorithm'))

def skipOutputChanged(checkbox, skipped):
checkbox.setEnabled(not skipped)

0 comments on commit 64d5193

Please sign in to comment.
You can’t perform that action at this time.