Skip to content

Commit

Permalink
ENH: Make "Download Sample Data" translatable.
Browse files Browse the repository at this point in the history
  • Loading branch information
u8621011 committed Feb 23, 2018
1 parent bdce361 commit 9d34c18
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions Modules/Scripted/SampleData/SampleData.py
Original file line number Diff line number Diff line change
Expand Up @@ -49,14 +49,15 @@ def __init__(self, parent):

def addMenu(self):
actionIcon = self.parent.icon
a = qt.QAction(actionIcon, 'Download Sample Data', slicer.util.mainWindow())
mTranslate = slicer.app.translate("qSlicerWelcomeModuleWidget", "Download Sample Data")
a = qt.QAction(actionIcon, mTranslate, slicer.util.mainWindow())
a.setToolTip('Go to the SampleData module to download data from the network')
a.connect('triggered()', self.select)

fileMenu = slicer.util.lookupTopLevelWidget('FileMenu')
if fileMenu:
for action in fileMenu.actions():
if action.text == 'Save':
if action.name == 'FileSaveSceneAction':
fileMenu.insertAction(action,a)


Expand Down

0 comments on commit 9d34c18

Please sign in to comment.