Skip to content

Commit 25e9f86

Browse files
committedJul 27, 2015
processing: simple interface translation fix
1 parent f899f53 commit 25e9f86

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed
 

‎python/plugins/processing/gui/AlgorithmClassification.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -77,6 +77,8 @@ def getClassificationEn(alg):
7777

7878
def getClassification(alg):
7979
group, subgroup = getClassificationEn(alg)
80+
if not group and not subgroup:
81+
return None, None
8082
return (QCoreApplication.translate('AlgorithmClassification', group),
8183
QCoreApplication.translate('AlgorithmClassification', subgroup))
8284

‎python/plugins/processing/gui/ProcessingToolbox.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -58,8 +58,8 @@ def __init__(self):
5858
self.setAllowedAreas(Qt.LeftDockWidgetArea | Qt.RightDockWidgetArea)
5959

6060
self.modeComboBox.clear()
61-
self.modeComboBox.addItems(['Simplified interface',
62-
'Advanced interface'])
61+
self.modeComboBox.addItems([self.tr('Simplified interface'),
62+
self.tr('Advanced interface']))
6363
settings = QSettings()
6464
if not settings.contains(self.USE_CATEGORIES):
6565
settings.setValue(self.USE_CATEGORIES, True)

0 commit comments

Comments
 (0)
Please sign in to comment.