Skip to content
Permalink
Browse files

Merge pull request #3231 from arnaud-morvan/processing_menu_translation

[processing] translate alg names in vector menu and options dialog
  • Loading branch information
alexbruy committed Jun 24, 2016
2 parents 92bfcd4 + 9edab1e commit 67493514beb35eddb048e1408df1a9484d787446
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 6749351

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