Skip to content

Commit 9d34c18

Browse files
committed
ENH: Make "Download Sample Data" translatable.
1 parent bdce361 commit 9d34c18

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

Modules/Scripted/SampleData/SampleData.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -49,14 +49,15 @@ def __init__(self, parent):
4949

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

5657
fileMenu = slicer.util.lookupTopLevelWidget('FileMenu')
5758
if fileMenu:
5859
for action in fileMenu.actions():
59-
if action.text == 'Save':
60+
if action.name == 'FileSaveSceneAction':
6061
fileMenu.insertAction(action,a)
6162

6263

0 commit comments

Comments
 (0)