Skip to content
Permalink
Browse files

[Processing] Translate alg names in menu and options dialog

  • Loading branch information
arnaud-morvan committed Jun 23, 2016
1 parent 36e7f92 commit 9edab1e0a83fc1f9ff5207c03ddda33377e380be
Showing with 3 additions and 3 deletions.
  1. +1 −1 python/plugins/processing/gui/ConfigDialog.py
  2. +2 −2 python/plugins/processing/gui/menus.py
@@ -207,7 +207,7 @@ def fillTreeUsingProviders(self):
groupItem.setEditable(False)

for alg in provider.algs:
algItem = QStandardItem(alg.name)
algItem = QStandardItem(alg.i18n_name or alg.name)
algItem.setIcon(icon)
algItem.setEditable(False)
try:
@@ -155,7 +155,7 @@ def removeMenus():


def addAlgorithmEntry(alg, menuName, submenuName, actionText=None, icon=None, addButton=False):
action = QAction(icon or alg.getIcon(), actionText or alg.name, iface.mainWindow())
action = QAction(icon or alg.getIcon(), actionText or alg.i18n_name or alg.name, iface.mainWindow())
action.triggered.connect(lambda: _executeAlgorithm(alg))
action.setObjectName("mProcessingUserMenu_%s" % alg.commandLineName())

@@ -232,6 +232,6 @@ def getMenu(name, parent):

def findAction(actions, alg, actionText=None):
for action in actions:
if action.text() in [actionText, alg.name]:
if action.text() in [actionText, alg.i18n_name, alg.name]:
return action
return None

0 comments on commit 9edab1e

Please sign in to comment.
You can’t perform that action at this time.