Skip to content

Commit

Permalink
Use QCoreApplication.translate() instead
Browse files Browse the repository at this point in the history
  • Loading branch information
DelazJ authored and nyalldawson committed May 1, 2018
1 parent 8088659 commit 46f867c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions python/plugins/processing/gui/menus.py
Expand Up @@ -194,8 +194,8 @@ def addAlgorithmEntry(alg, menuName, submenuName, actionText=None, icon=None, ad
if addButton:
global algorithmsToolbar
if algorithmsToolbar is None:
algorithmsToolbar = iface.addToolBar(Processing.tr('Processing Algorithms'))
algorithmsToolbar.setToolTip(Processing.tr('Processing Algorithms Toolbar'))
algorithmsToolbar = iface.addToolBar(QCoreApplication.translate('MainWindow', 'Processing Algorithms'))
algorithmsToolbar.setToolTip(QCoreApplication.translate('MainWindow', 'Processing Algorithms Toolbar'))
algorithmsToolbar.addAction(action)


Expand Down

0 comments on commit 46f867c

Please sign in to comment.