Skip to content

Commit

Permalink
integrate processing into update_ts.sh (also includes all translations
Browse files Browse the repository at this point in the history
in the repository and none outside of it).
  • Loading branch information
jef-n committed Jul 26, 2015
1 parent 89e9980 commit 66a3d02
Show file tree
Hide file tree
Showing 526 changed files with 965 additions and 1,451 deletions.
2 changes: 0 additions & 2 deletions .gitignore
Expand Up @@ -19,8 +19,6 @@
.pydevproject
/CMakeLists.txt.user
/CMakeLists.txt.user.*
/python/plugins/sextante/about/ui_aboutdialogbase.py
/python/plugins/sextante/resources_rc.py
api_doc
build*
debian/*.debhelper
Expand Down
Expand Up @@ -60,10 +60,10 @@ def defineCharacteristics(self):
"""

# The name that the user will see in the toolbox
self.name = 'Create copy of layer'
self.name, self.i18n_name = self.trAlgorithm('Create copy of layer')

# The branch of the toolbox under which the algorithm will appear
self.group = 'Algorithms for vector layers'
self.group, self.i18n_group = self.trAlgorithm('Algorithms for vector layers')

# We add the input vector layer. It can have any kind of geometry
# It is a mandatory (not optional) one, hence the False argument
Expand Down
4 changes: 2 additions & 2 deletions python/plugins/processing/algs/gdal/ClipByExtent.py
Expand Up @@ -44,8 +44,8 @@ class ClipByExtent(GdalAlgorithm):
EXTRA = 'EXTRA'

def defineCharacteristics(self):
self.name = 'Clip raster by extent'
self.group = '[GDAL] Extraction'
self.name, self.i18n_name = self.trAlgorithm('Clip raster by extent')
self.group, self.i18n_group = self.trAlgorithm('[GDAL] Extraction')
self.addParameter(ParameterRaster(
self.INPUT, self.tr('Input layer'), False))
self.addParameter(ParameterString(self.NO_DATA,
Expand Down
4 changes: 2 additions & 2 deletions python/plugins/processing/algs/gdal/ClipByMask.py
Expand Up @@ -50,8 +50,8 @@ class ClipByMask(GdalAlgorithm):
EXTRA = 'EXTRA'

def defineCharacteristics(self):
self.name = 'Clip raster by mask layer'
self.group = '[GDAL] Extraction'
self.name, self.i18n_name = self.trAlgorithm('Clip raster by mask layer')
self.group, self.i18n_group = self.trAlgorithm('[GDAL] Extraction')
self.addParameter(ParameterRaster(self.INPUT, self.tr('Input layer'), False))
self.addParameter(ParameterVector(self.MASK, self.tr('Mask layer'),
[ParameterVector.VECTOR_TYPE_POLYGON]))
Expand Down
4 changes: 2 additions & 2 deletions python/plugins/processing/algs/gdal/ColorRelief.py
Expand Up @@ -51,8 +51,8 @@ class ColorRelief(GdalAlgorithm):
# return QIcon(filepath)

def defineCharacteristics(self):
self.name = 'Color relief'
self.group = '[GDAL] Analysis'
self.name, self.i18n_name = self.trAlgorithm('Color relief')
self.group, self.i18n_group = self.trAlgorithm('[GDAL] Analysis')
self.addParameter(ParameterRaster(self.INPUT, self.tr('Input layer')))
self.addParameter(ParameterNumber(
self.BAND, self.tr('Band number'), 1, 99, 1))
Expand Down
4 changes: 2 additions & 2 deletions python/plugins/processing/algs/gdal/GridAverage.py
Expand Up @@ -54,8 +54,8 @@ def commandLineName(self):
return "gdalogr:gridaverage"

def defineCharacteristics(self):
self.name = 'Grid (Moving average)'
self.group = '[GDAL] Analysis'
self.name, self.i18n_name = self.trAlgorithm('Grid (Moving average)')
self.group, self.i18n_group = self.trAlgorithm('[GDAL] Analysis')
self.addParameter(ParameterVector(self.INPUT,
self.tr('Input layer'), [ParameterVector.VECTOR_TYPE_POINT]))
self.addParameter(ParameterTableField(self.Z_FIELD,
Expand Down
4 changes: 2 additions & 2 deletions python/plugins/processing/algs/gdal/GridDataMetrics.py
Expand Up @@ -58,8 +58,8 @@ def commandLineName(self):
return "gdalogr:griddatametrics"

def defineCharacteristics(self):
self.name = 'Grid (Data metrics)'
self.group = '[GDAL] Analysis'
self.name, self.i18n_name = self.trAlgorithm('Grid (Data metrics)')
self.group, self.i18n_group = self.trAlgorithm('[GDAL] Analysis')
self.addParameter(ParameterVector(self.INPUT,
self.tr('Input layer'), [ParameterVector.VECTOR_TYPE_POINT]))
self.addParameter(ParameterTableField(self.Z_FIELD,
Expand Down
4 changes: 2 additions & 2 deletions python/plugins/processing/algs/gdal/GridInvDist.py
Expand Up @@ -58,8 +58,8 @@ def commandLineName(self):
return "gdalogr:gridinvdist"

def defineCharacteristics(self):
self.name = 'Grid (Inverse distance to a power)'
self.group = '[GDAL] Analysis'
self.name, self.i18n_name = self.trAlgorithm('Grid (Inverse distance to a power)')
self.group, self.i18n_group = self.trAlgorithm('[GDAL] Analysis')
self.addParameter(ParameterVector(self.INPUT,
self.tr('Input layer'), [ParameterVector.VECTOR_TYPE_POINT]))
self.addParameter(ParameterTableField(self.Z_FIELD,
Expand Down
4 changes: 2 additions & 2 deletions python/plugins/processing/algs/gdal/GridNearest.py
Expand Up @@ -54,8 +54,8 @@ def commandLineName(self):
return "gdalogr:gridnearestneighbor"

def defineCharacteristics(self):
self.name = 'Grid (Nearest neighbor)'
self.group = '[GDAL] Analysis'
self.name, self.i18n_name = self.trAlgorithm('Grid (Nearest neighbor)')
self.group, self.i18n_group = self.trAlgorithm('[GDAL] Analysis')
self.addParameter(ParameterVector(self.INPUT,
self.tr('Input layer'), [ParameterVector.VECTOR_TYPE_POINT]))
self.addParameter(ParameterTableField(self.Z_FIELD,
Expand Down
6 changes: 3 additions & 3 deletions python/plugins/processing/algs/gdal/aspect.py
Expand Up @@ -49,8 +49,8 @@ class aspect(GdalAlgorithm):
# return QIcon(filepath)

def defineCharacteristics(self):
self.name = 'Aspect'
self.group = '[GDAL] Analysis'
self.name, self.i18n_name = self.trAlgorithm('Aspect')
self.group, self.i18n_group = self.trAlgorithm('[GDAL] Analysis')
self.addParameter(ParameterRaster(self.INPUT, self.tr('Input layer')))
self.addParameter(ParameterNumber(
self.BAND, self.tr('Band number'), 1, 99, 1))
Expand Down Expand Up @@ -92,4 +92,4 @@ def getConsoleCommands(self):
arguments.append('-zero_for_flat')

return ['gdaldem', GdalUtils.escapeAndJoin(arguments)]

4 changes: 2 additions & 2 deletions python/plugins/processing/algs/gdal/buildvrt.py
Expand Up @@ -47,8 +47,8 @@ class buildvrt(GdalAlgorithm):
RESOLUTION_OPTIONS = ['average', 'highest', 'lowest']

def defineCharacteristics(self):
self.name = 'Build Virtual Raster'
self.group = '[GDAL] Miscellaneous'
self.name, self.i18n_name = self.trAlgorithm('Build Virtual Raster')
self.group, self.i18n_group = self.trAlgorithm('[GDAL] Miscellaneous')
self.addParameter(ParameterMultipleInput(self.INPUT,
self.tr('Input layers'), ParameterMultipleInput.TYPE_RASTER))
self.addParameter(ParameterSelection(self.RESOLUTION,
Expand Down
4 changes: 2 additions & 2 deletions python/plugins/processing/algs/gdal/contour.py
Expand Up @@ -45,8 +45,8 @@ class contour(GdalAlgorithm):
EXTRA = 'EXTRA'

def defineCharacteristics(self):
self.name = 'Contour'
self.group = '[GDAL] Extraction'
self.name, self.i18n_name = self.trAlgorithm('Contour')
self.group, self.i18n_group = self.trAlgorithm('[GDAL] Extraction')
self.addParameter(ParameterRaster(self.INPUT_RASTER,
self.tr('Input layer'), False))
self.addParameter(ParameterNumber(self.INTERVAL,
Expand Down
4 changes: 2 additions & 2 deletions python/plugins/processing/algs/gdal/extractprojection.py
Expand Up @@ -40,8 +40,8 @@ class ExtractProjection(GdalAlgorithm):
PRJ_FILE = 'PRJ_FILE'

def defineCharacteristics(self):
self.name = 'Extract projection'
self.group = '[GDAL] Projections'
self.name, self.i18n_name = self.trAlgorithm('Extract projection')
self.group, self.i18n_group = self.trAlgorithm('[GDAL] Projections')
self.addParameter(ParameterRaster(self.INPUT, self.tr('Input file')))
self.addParameter(ParameterBoolean(self.PRJ_FILE,
self.tr('Create also .prj file'), False))
Expand Down
4 changes: 2 additions & 2 deletions python/plugins/processing/algs/gdal/fillnodata.py
Expand Up @@ -49,8 +49,8 @@ class fillnodata(GdalAlgorithm):
OUTPUT = 'OUTPUT'

def defineCharacteristics(self):
self.name = 'Fill nodata'
self.group = '[GDAL] Analysis'
self.name, self.i18n_name = self.trAlgorithm('Fill nodata')
self.group, self.i18n_group = self.trAlgorithm('[GDAL] Analysis')
self.addParameter(ParameterRaster(
self.INPUT, self.tr('Input layer'), False))
self.addParameter(ParameterNumber(self.DISTANCE,
Expand Down
4 changes: 2 additions & 2 deletions python/plugins/processing/algs/gdal/gdal2xyz.py
Expand Up @@ -43,8 +43,8 @@ class gdal2xyz(GdalAlgorithm):
OUTPUT = 'OUTPUT'

def defineCharacteristics(self):
self.name = 'gdal2xyz'
self.group = '[GDAL] Conversion'
self.name, self.i18n_name = self.trAlgorithm('gdal2xyz')
self.group, self.i18n_group = self.trAlgorithm('[GDAL] Conversion')
self.addParameter(ParameterRaster(
self.INPUT, self.tr('Input layer'), False))
self.addParameter(ParameterNumber(self.BAND,
Expand Down
4 changes: 2 additions & 2 deletions python/plugins/processing/algs/gdal/gdaladdo.py
Expand Up @@ -61,8 +61,8 @@ def commandLineName(self):
return "gdalogr:overviews"

def defineCharacteristics(self):
self.name = 'Build overviews (pyramids)'
self.group = '[GDAL] Miscellaneous'
self.name, self.i18n_name = self.trAlgorithm('Build overviews (pyramids)')
self.group, self.i18n_group = self.trAlgorithm('[GDAL] Miscellaneous')
self.addParameter(ParameterRaster(
self.INPUT, self.tr('Input layer'), False))
self.addParameter(ParameterString(self.LEVELS,
Expand Down
4 changes: 2 additions & 2 deletions python/plugins/processing/algs/gdal/gdalcalc.py
Expand Up @@ -62,8 +62,8 @@ class gdalcalc(GdalAlgorithm):
#DEBUG = 'DEBUG'

def defineCharacteristics(self):
self.name = 'Raster calculator'
self.group = '[GDAL] Miscellaneous'
self.name, self.i18n_name = self.trAlgorithm('Raster calculator')
self.group, self.i18n_group = self.trAlgorithm('[GDAL] Miscellaneous')
self.addParameter(ParameterRaster(
self.INPUT_A, self.tr('Input layer A'), False))
self.addParameter(ParameterString(self.BAND_A,
Expand Down
4 changes: 2 additions & 2 deletions python/plugins/processing/algs/gdal/gdaltindex.py
Expand Up @@ -43,8 +43,8 @@ class gdaltindex(GdalAlgorithm):
PROJ_DIFFERENCE = 'PROJ_DIFFERENCE'

def defineCharacteristics(self):
self.name = 'Tile Index'
self.group = '[GDAL] Miscellaneous'
self.name, self.i18n_name = self.trAlgorithm('Tile Index')
self.group, self.i18n_group = self.trAlgorithm('[GDAL] Miscellaneous')
self.addParameter(ParameterMultipleInput(self.INPUT,
self.tr('Input layers'), ParameterMultipleInput.TYPE_RASTER))
self.addParameter(ParameterString(self.FIELD_NAME,
Expand Down
4 changes: 2 additions & 2 deletions python/plugins/processing/algs/gdal/hillshade.py
Expand Up @@ -47,8 +47,8 @@ class hillshade(GdalAlgorithm):
OUTPUT = 'OUTPUT'

def defineCharacteristics(self):
self.name = 'Hillshade'
self.group = '[GDAL] Analysis'
self.name, self.i18n_name = self.trAlgorithm('Hillshade')
self.group, self.i18n_group = self.trAlgorithm('[GDAL] Analysis')
self.addParameter(ParameterRaster(self.INPUT, self.tr('Input layer')))
self.addParameter(ParameterNumber(self.BAND,
self.tr('Band number'), 1, 99, 1))
Expand Down
4 changes: 2 additions & 2 deletions python/plugins/processing/algs/gdal/information.py
Expand Up @@ -43,8 +43,8 @@ def commandLineName(self):
return "gdalorg:rasterinfo"

def defineCharacteristics(self):
self.name = 'Information'
self.group = '[GDAL] Miscellaneous'
self.name, self.i18n_name = self.trAlgorithm('Information')
self.group, self.i18n_group = self.trAlgorithm('[GDAL] Miscellaneous')
self.addParameter(ParameterRaster(information.INPUT,
self.tr('Input layer'), False))
self.addParameter(ParameterBoolean(information.NOGCP,
Expand Down
4 changes: 2 additions & 2 deletions python/plugins/processing/algs/gdal/merge.py
Expand Up @@ -46,8 +46,8 @@ class merge(GdalAlgorithm):
TYPE = ['Byte', 'Int16', 'UInt16', 'UInt32', 'Int32', 'Float32', 'Float64']

def defineCharacteristics(self):
self.name = 'Merge'
self.group = '[GDAL] Miscellaneous'
self.name, self.i18n_name = self.trAlgorithm('Merge')
self.group, self.i18n_group = self.trAlgorithm('[GDAL] Miscellaneous')
self.addParameter(ParameterMultipleInput(merge.INPUT,
self.tr('Input layers'), ParameterMultipleInput.TYPE_RASTER))
self.addParameter(ParameterBoolean(merge.PCT,
Expand Down
4 changes: 2 additions & 2 deletions python/plugins/processing/algs/gdal/nearblack.py
Expand Up @@ -41,8 +41,8 @@ class nearblack(GdalAlgorithm):
WHITE = 'WHITE'

def defineCharacteristics(self):
self.name = 'Near black'
self.group = '[GDAL] Analysis'
self.name, self.i18n_name = self.trAlgorithm('Near black')
self.group, self.i18n_group = self.trAlgorithm('[GDAL] Analysis')
self.addParameter(ParameterRaster(nearblack.INPUT,
self.tr('Input layer'), False))
self.addParameter(ParameterNumber(nearblack.NEAR,
Expand Down
4 changes: 2 additions & 2 deletions python/plugins/processing/algs/gdal/ogr2ogr.py
Expand Up @@ -96,8 +96,8 @@ class Ogr2Ogr(OgrAlgorithm):
OPTIONS = 'OPTIONS'

def defineCharacteristics(self):
self.name = 'Convert format'
self.group = '[OGR] Conversion'
self.name, self.i18n_name = self.trAlgorithm('Convert format')
self.group, self.i18n_group = self.trAlgorithm('[OGR] Conversion')

self.addParameter(ParameterVector(self.INPUT_LAYER,
self.tr('Input layer'), [ParameterVector.VECTOR_TYPE_ANY], False))
Expand Down
6 changes: 3 additions & 3 deletions python/plugins/processing/algs/gdal/ogr2ogrbuffer.py
Expand Up @@ -49,8 +49,8 @@ class Ogr2OgrBuffer(OgrAlgorithm):
OPTIONS = 'OPTIONS'

def defineCharacteristics(self):
self.name = 'Buffer vectors'
self.group = '[OGR] Geoprocessing'
self.name, self.i18n_name = self.trAlgorithm('Buffer vectors')
self.group, self.i18n_group = self.trAlgorithm('[OGR] Geoprocessing')

self.addParameter(ParameterVector(self.INPUT_LAYER,
self.tr('Input layer'), [ParameterVector.VECTOR_TYPE_ANY], False))
Expand Down Expand Up @@ -123,6 +123,6 @@ def getConsoleCommands(self):
commands = ['ogr2ogr', GdalUtils.escapeAndJoin(arguments)]

return commands

def commandName(self):
return "ogr2ogr"
6 changes: 3 additions & 3 deletions python/plugins/processing/algs/gdal/ogr2ogrclip.py
Expand Up @@ -42,8 +42,8 @@ class Ogr2OgrClip(OgrAlgorithm):
OPTIONS = 'OPTIONS'

def defineCharacteristics(self):
self.name = 'Clip vectors by polygon'
self.group = '[OGR] Geoprocessing'
self.name, self.i18n_name = self.trAlgorithm('Clip vectors by polygon')
self.group, self.i18n_group = self.trAlgorithm('[OGR] Geoprocessing')

self.addParameter(ParameterVector(self.INPUT_LAYER,
self.tr('Input layer'), [ParameterVector.VECTOR_TYPE_ANY], False))
Expand Down Expand Up @@ -86,6 +86,6 @@ def getConsoleCommands(self):
commands = ['ogr2ogr', GdalUtils.escapeAndJoin(arguments)]

return commands

def commandName(self):
return "ogr2ogr"
4 changes: 2 additions & 2 deletions python/plugins/processing/algs/gdal/ogr2ogrclipextent.py
Expand Up @@ -43,8 +43,8 @@ class Ogr2OgrClipExtent(OgrAlgorithm):
OPTIONS = 'OPTIONS'

def defineCharacteristics(self):
self.name = 'Clip vectors by extent'
self.group = '[OGR] Geoprocessing'
self.name, self.i18n_name = self.trAlgorithm('Clip vectors by extent')
self.group, self.i18n_group = self.trAlgorithm('[OGR] Geoprocessing')

self.addParameter(ParameterVector(self.INPUT_LAYER,
self.tr('Input layer'), [ParameterVector.VECTOR_TYPE_ANY], False))
Expand Down
6 changes: 3 additions & 3 deletions python/plugins/processing/algs/gdal/ogr2ogrdissolve.py
Expand Up @@ -52,8 +52,8 @@ class Ogr2OgrDissolve(OgrAlgorithm):
OPTIONS = 'OPTIONS'

def defineCharacteristics(self):
self.name = 'Dissolve polygons'
self.group = '[OGR] Geoprocessing'
self.name, self.i18n_name = self.trAlgorithm('Dissolve polygons')
self.group, self.i18n_group = self.trAlgorithm('[OGR] Geoprocessing')

self.addParameter(ParameterVector(self.INPUT_LAYER,
self.tr('Input layer'), [ParameterVector.VECTOR_TYPE_POLYGON], False))
Expand Down Expand Up @@ -138,6 +138,6 @@ def getConsoleCommands(self):
commands = ['ogr2ogr', GdalUtils.escapeAndJoin(arguments)]

return commands

def commandName(self):
return "ogr2ogr"
4 changes: 2 additions & 2 deletions python/plugins/processing/algs/gdal/ogr2ogronesidebuffer.py
Expand Up @@ -54,8 +54,8 @@ class Ogr2OgrOneSideBuffer(OgrAlgorithm):
OPTIONS = 'OPTIONS'

def defineCharacteristics(self):
self.name = 'Single sided buffers (and offset lines) for lines'
self.group = '[OGR] Geoprocessing'
self.name, self.i18n_name = self.trAlgorithm('Single sided buffers (and offset lines) for lines')
self.group, self.i18n_group = self.trAlgorithm('[OGR] Geoprocessing')

self.addParameter(ParameterVector(self.INPUT_LAYER,
self.tr('Input layer'), [ParameterVector.VECTOR_TYPE_LINE], False))
Expand Down
4 changes: 2 additions & 2 deletions python/plugins/processing/algs/gdal/ogr2ogrpointsonlines.py
Expand Up @@ -45,8 +45,8 @@ class Ogr2OgrPointsOnLines(OgrAlgorithm):
OPTIONS = 'OPTIONS'

def defineCharacteristics(self):
self.name = 'Create points along lines'
self.group = '[OGR] Geoprocessing'
self.name, self.i18n_name = self.trAlgorithm('Create points along lines')
self.group, self.i18n_group = self.trAlgorithm('[OGR] Geoprocessing')

self.addParameter(ParameterVector(self.INPUT_LAYER,
self.tr('Input layer'), [ParameterVector.VECTOR_TYPE_LINE], False))
Expand Down
Expand Up @@ -70,8 +70,8 @@ def dbConnectionNames(self):
return settings.childGroups()

def defineCharacteristics(self):
self.name = 'Import layer/table as geometryless table into PostgreSQL database'
self.group = '[OGR] Miscellaneous'
self.name, self.i18n_name = self.trAlgorithm('Import layer/table as geometryless table into PostgreSQL database')
self.group, self.i18n_group = self.trAlgorithm('[OGR] Miscellaneous')
self.DB_CONNECTIONS = self.dbConnectionNames()
self.addParameter(ParameterSelection(self.DATABASE,
self.tr('Database (connection name)'), self.DB_CONNECTIONS))
Expand Down Expand Up @@ -193,6 +193,6 @@ def getConsoleCommands(self):
commands = ['ogr2ogr', GdalUtils.escapeAndJoin(arguments)]

return commands

def commandName(self):
return "ogr2ogr"
4 changes: 2 additions & 2 deletions python/plugins/processing/algs/gdal/ogr2ogrtopostgis.py
Expand Up @@ -75,8 +75,8 @@ class Ogr2OgrToPostGis(OgrAlgorithm):
OPTIONS = 'OPTIONS'

def defineCharacteristics(self):
self.name = 'Import Vector into PostGIS database (new connection)'
self.group = '[OGR] Miscellaneous'
self.name, self.i18n_name = self.trAlgorithm('Import Vector into PostGIS database (new connection)')
self.group, self.i18n_group = self.trAlgorithm('[OGR] Miscellaneous')
self.addParameter(ParameterVector(self.INPUT_LAYER,
self.tr('Input layer'), [ParameterVector.VECTOR_TYPE_ANY], False))
self.addParameter(ParameterSelection(self.GTYPE,
Expand Down
4 changes: 2 additions & 2 deletions python/plugins/processing/algs/gdal/ogr2ogrtopostgislist.py
Expand Up @@ -84,8 +84,8 @@ def dbConnectionNames(self):
return settings.childGroups()

def defineCharacteristics(self):
self.name = 'Import Vector into PostGIS database (available connections)'
self.group = '[OGR] Miscellaneous'
self.name, self.i18n_name = self.trAlgorithm('Import Vector into PostGIS database (available connections)')
self.group, self.i18n_group = self.trAlgorithm('[OGR] Miscellaneous')
self.DB_CONNECTIONS = self.dbConnectionNames()
self.addParameter(ParameterSelection(self.DATABASE,
self.tr('Database (connection name)'), self.DB_CONNECTIONS))
Expand Down

0 comments on commit 66a3d02

Please sign in to comment.