processing: simple interface translation fix

This commit is contained in:
Juergen E. Fischer 2015-07-27 13:26:19 +02:00
parent f899f539db
commit 25e9f864a2
2 changed files with 4 additions and 2 deletions

View File

@ -77,6 +77,8 @@ def getClassificationEn(alg):
def getClassification(alg):
group, subgroup = getClassificationEn(alg)
if not group and not subgroup:
return None, None
return (QCoreApplication.translate('AlgorithmClassification', group),
QCoreApplication.translate('AlgorithmClassification', subgroup))

View File

@ -58,8 +58,8 @@ class ProcessingToolbox(BASE, WIDGET):
self.setAllowedAreas(Qt.LeftDockWidgetArea | Qt.RightDockWidgetArea)
self.modeComboBox.clear()
self.modeComboBox.addItems(['Simplified interface',
'Advanced interface'])
self.modeComboBox.addItems([self.tr('Simplified interface'),
self.tr('Advanced interface']))
settings = QSettings()
if not settings.contains(self.USE_CATEGORIES):
settings.setValue(self.USE_CATEGORIES, True)