Navigation Menu

Skip to content

Commit

Permalink
Translation fixes for GDAL build VRT.
Browse files Browse the repository at this point in the history
  • Loading branch information
ajolma authored and nyalldawson committed May 7, 2018
1 parent 3fff872 commit 64d5193
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 8 deletions.
15 changes: 8 additions & 7 deletions python/plugins/processing/algs/gdal/buildvrt.py
Expand Up @@ -27,6 +27,7 @@

import os

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

from qgis.core import (QgsProcessing,
Expand Down Expand Up @@ -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'
Expand Down
2 changes: 1 addition & 1 deletion python/plugins/processing/gui/ParametersPanel.py
Expand Up @@ -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)
Expand Down

0 comments on commit 64d5193

Please sign in to comment.