Skip to content
Permalink
Browse files
fix processing plugin main translation and add translations
for toplevel toolbox entries (fixes #12168)
  • Loading branch information
jef-n committed Feb 13, 2015
1 parent 0a51260 commit 4a4495622236ba9a491e64e8f0651b40cfd321b2
@@ -156,4 +156,4 @@ def openConfig(self):
dlg.exec_()

def tr(self, message):
return QCoreApplication.translate('Processing', message)
return QCoreApplication.translate('ProcessingPlugin', message)
@@ -100,7 +100,7 @@ def scriptsFolder(self):
return os.path.dirname(__file__) + '/scripts'

def getDescription(self):
return 'GDAL/OGR'
return self.tr('GDAL/OGR')

def getName(self):
return 'gdalogr'
@@ -88,7 +88,7 @@ def _loadAlgorithms(self):
self.algs = self.preloadedAlgs

def getDescription(self):
return 'GRASS commands'
return self.tr('GRASS commands')

def getName(self):
return 'grass'
@@ -93,7 +93,7 @@ def _loadAlgorithms(self):
self.algs = self.preloadedAlgs

def getDescription(self):
return 'GRASS GIS 7 commands'
return self.tr('GRASS GIS 7 commands')

def getName(self):
return 'grass70'
@@ -223,7 +223,7 @@ def getName(self):
return 'lidartools'

def getDescription(self):
return 'Tools for LiDAR data'
return self.tr('Tools for LiDAR data')

def getIcon(self):
return QIcon(os.path.dirname(__file__) + '/../../images/tool.png')
@@ -45,7 +45,7 @@ def __init__(self):


def getDescription(self):
return "Orfeo Toolbox (Image analysis)"
return self.tr("Orfeo Toolbox (Image analysis)")

def getName(self):
return "otb"
@@ -207,7 +207,7 @@ def getName(self):
return 'qgis'

def getDescription(self):
return 'QGIS geoalgorithms'
return self.tr('QGIS geoalgorithms')

def getIcon(self):
return self._icon
@@ -54,7 +54,7 @@ def __init__(self):
self.createAlgsList()

def getDescription(self):
return 'TauDEM (hydrologic analysis)'
return self.tr('TauDEM (hydrologic analysis)')

def getName(self):
return 'taudem'
@@ -26,7 +26,7 @@

__revision__ = '$Format:%H$'

from PyQt4.QtCore import Qt, QSettings
from PyQt4.QtCore import Qt, QSettings, QCoreApplication
from PyQt4.QtGui import QDockWidget, QMenu, QAction, QTreeWidgetItem
from qgis.utils import iface
from processing.modeler.ModelerUtils import ModelerUtils
@@ -404,7 +404,7 @@ def populate(self):
groupItem.addChild(algItem)

self.setText(0, self.provider.getDescription()
+ ' [' + str(count) + ' geoalgorithms]')
+ QCoreApplication.translate( "TreeProviderItem", " [{0} geoalgorithms]" ).format( count ) )
self.setToolTip(0, self.text(0))
for groupItem in groups.values():
self.addChild(groupItem)
@@ -21,8 +21,7 @@
# Note the .pro file must NOT be named qgis.pro as this
# name is reserved for the Windows qmake project file

echo "deprecated - use push_ts.sh and pull_ts.sh"
exit 1
echo "deprecated - use push_ts.sh and pull_ts.sh" >&2

set -e

0 comments on commit 4a44956

Please sign in to comment.