Skip to content

Commit

Permalink
processing: simple interface translation fix
Browse files Browse the repository at this point in the history
  • Loading branch information
jef-n committed Jul 27, 2015
1 parent f899f53 commit 25e9f86
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 2 additions & 0 deletions python/plugins/processing/gui/AlgorithmClassification.py
Original file line number Diff line number Diff line change
Expand Up @@ -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))

Expand Down
4 changes: 2 additions & 2 deletions python/plugins/processing/gui/ProcessingToolbox.py
Original file line number Diff line number Diff line change
Expand Up @@ -58,8 +58,8 @@ def __init__(self):
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)
Expand Down

0 comments on commit 25e9f86

Please sign in to comment.