mirror of
https://github.com/qgis/QGIS.git
synced 2025-04-17 00:04:02 -04:00
Translation fixes for GDAL build VRT.
This commit is contained in:
parent
3fff8724ea
commit
64d5193f20
@ -27,6 +27,7 @@ __revision__ = '$Format:%H$'
|
|||||||
|
|
||||||
import os
|
import os
|
||||||
|
|
||||||
|
from qgis.PyQt.QtCore import QCoreApplication
|
||||||
from qgis.PyQt.QtGui import QIcon
|
from qgis.PyQt.QtGui import QIcon
|
||||||
|
|
||||||
from qgis.core import (QgsProcessing,
|
from qgis.core import (QgsProcessing,
|
||||||
@ -74,31 +75,31 @@ class buildvrt(GdalAlgorithm):
|
|||||||
return 'vrt'
|
return 'vrt'
|
||||||
|
|
||||||
self.addParameter(QgsProcessingParameterMultipleLayers(self.INPUT,
|
self.addParameter(QgsProcessingParameterMultipleLayers(self.INPUT,
|
||||||
self.tr('Input layers'),
|
QCoreApplication.translate("ParameterVrtDestination", 'Input layers'),
|
||||||
QgsProcessing.TypeRaster))
|
QgsProcessing.TypeRaster))
|
||||||
self.addParameter(QgsProcessingParameterEnum(self.RESOLUTION,
|
self.addParameter(QgsProcessingParameterEnum(self.RESOLUTION,
|
||||||
self.tr('Resolution'),
|
QCoreApplication.translate("ParameterVrtDestination", 'Resolution'),
|
||||||
options=self.RESOLUTION_OPTIONS,
|
options=self.RESOLUTION_OPTIONS,
|
||||||
defaultValue=0))
|
defaultValue=0))
|
||||||
self.addParameter(QgsProcessingParameterBoolean(self.SEPARATE,
|
self.addParameter(QgsProcessingParameterBoolean(self.SEPARATE,
|
||||||
self.tr('Layer stack'),
|
QCoreApplication.translate("ParameterVrtDestination", 'Layer stack'),
|
||||||
defaultValue=True))
|
defaultValue=True))
|
||||||
self.addParameter(QgsProcessingParameterBoolean(self.PROJ_DIFFERENCE,
|
self.addParameter(QgsProcessingParameterBoolean(self.PROJ_DIFFERENCE,
|
||||||
self.tr('Allow projection difference'),
|
QCoreApplication.translate("ParameterVrtDestination", 'Allow projection difference'),
|
||||||
defaultValue=False))
|
defaultValue=False))
|
||||||
self.addParameter(ParameterVrtDestination(self.OUTPUT, self.tr('Virtual')))
|
self.addParameter(ParameterVrtDestination(self.OUTPUT, QCoreApplication.translate("ParameterVrtDestination", 'Virtual')))
|
||||||
|
|
||||||
def name(self):
|
def name(self):
|
||||||
return 'buildvirtualraster'
|
return 'buildvirtualraster'
|
||||||
|
|
||||||
def displayName(self):
|
def displayName(self):
|
||||||
return self.tr('Build Virtual Raster')
|
return QCoreApplication.translate("buildvrt", 'Build Virtual Raster')
|
||||||
|
|
||||||
def icon(self):
|
def icon(self):
|
||||||
return QIcon(os.path.join(pluginPath, 'images', 'gdaltools', 'vrt.png'))
|
return QIcon(os.path.join(pluginPath, 'images', 'gdaltools', 'vrt.png'))
|
||||||
|
|
||||||
def group(self):
|
def group(self):
|
||||||
return self.tr('Raster miscellaneous')
|
return QCoreApplication.translate("buildvrt", 'Raster miscellaneous')
|
||||||
|
|
||||||
def groupId(self):
|
def groupId(self):
|
||||||
return 'rastermiscellaneous'
|
return 'rastermiscellaneous'
|
||||||
|
@ -164,7 +164,7 @@ class ParametersPanel(BASE, WIDGET):
|
|||||||
self.layoutMain.insertWidget(self.layoutMain.count() - 1, widget)
|
self.layoutMain.insertWidget(self.layoutMain.count() - 1, widget)
|
||||||
if isinstance(output, (QgsProcessingParameterRasterDestination, QgsProcessingParameterFeatureSink, QgsProcessingParameterVectorDestination)):
|
if isinstance(output, (QgsProcessingParameterRasterDestination, QgsProcessingParameterFeatureSink, QgsProcessingParameterVectorDestination)):
|
||||||
check = QCheckBox()
|
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):
|
def skipOutputChanged(checkbox, skipped):
|
||||||
checkbox.setEnabled(not skipped)
|
checkbox.setEnabled(not skipped)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user