Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
pick Vector menu title from the main QGIS window instead of using own
translation (fix #35028, #28474)
  • Loading branch information
alexbruy committed Aug 16, 2020
1 parent cd6b6ee commit bacf779
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions python/plugins/processing/gui/menus.py
Expand Up @@ -42,7 +42,7 @@
menusSettingsGroup = 'Menus'

defaultMenuEntries = {}
vectorMenu = QApplication.translate('MainWindow', 'Vect&or')
vectorMenu = iface.vectorMenu().title()
analysisToolsMenu = vectorMenu + "/" + Processing.tr('&Analysis Tools')
defaultMenuEntries.update({'qgis:distancematrix': analysisToolsMenu,
'native:sumlinelengths': analysisToolsMenu,
Expand All @@ -64,7 +64,6 @@
'qgis:regularpoints': researchToolsMenu,
'native:selectbylocation': researchToolsMenu,
'native:polygonfromlayerextent': researchToolsMenu})

geoprocessingToolsMenu = vectorMenu + "/" + Processing.tr('&Geoprocessing Tools')
defaultMenuEntries.update({'native:buffer': geoprocessingToolsMenu,
'native:convexhull': geoprocessingToolsMenu,
Expand Down Expand Up @@ -95,7 +94,7 @@
'native:mergevectorlayers': managementToolsMenu,
'native:createspatialindex': managementToolsMenu})

rasterMenu = QApplication.translate('MainWindow', '&Raster')
rasterMenu = iface.rasterMenu().title()
projectionsMenu = rasterMenu + "/" + Processing.tr('Projections')
defaultMenuEntries.update({'gdal:warpreproject': projectionsMenu,
'gdal:extractprojection': projectionsMenu,
Expand Down

0 comments on commit bacf779

Please sign in to comment.