Skip to content

Commit

Permalink
[processing] corrected some issues with i18n names
Browse files Browse the repository at this point in the history
  • Loading branch information
volaya committed Sep 21, 2015
1 parent d43176a commit 8ed71fb
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion python/plugins/processing/gui/AlgorithmClassification.py
Original file line number Diff line number Diff line change
Expand Up @@ -94,4 +94,4 @@ def getDisplayNameEn(alg):


def getDisplayName(alg):
return alg.i18n_name if alg.i18n_name else "[" + alg.name + "]"
return alg.i18n_name or alg.name
2 changes: 1 addition & 1 deletion python/plugins/processing/gui/ProcessingToolbox.py
Original file line number Diff line number Diff line change
Expand Up @@ -388,7 +388,7 @@ def populate(self):
groupItem = groups[alg.group]
else:
groupItem = QTreeWidgetItem()
name = alg.i18n_group if alg.i18n_group else "[" + alg.group + "]"
name = alg.i18n_group or alg.group
groupItem.setText(0, name)
groupItem.setToolTip(0, name)
groups[alg.group] = groupItem
Expand Down
2 changes: 1 addition & 1 deletion python/plugins/processing/modeler/ModelerDialog.py
Original file line number Diff line number Diff line change
Expand Up @@ -571,7 +571,7 @@ def fillAlgorithmTreeUsingProviders(self):
groupItem = groups[alg.group]
else:
groupItem = QTreeWidgetItem()
name = alg.i18n_group
name = alg.i18n_group or alg.group
groupItem.setText(0, name)
groupItem.setToolTip(0, name)
groups[alg.group] = groupItem
Expand Down

0 comments on commit 8ed71fb

Please sign in to comment.