Fixing translate refactoring error.
This commit is contained in:
committed by
Yorik van Havre
parent
5424fcd19d
commit
f1186599a9
@@ -494,7 +494,7 @@ class EditorPanel():
|
||||
|
||||
def importFile(self):
|
||||
"imports a tooltable from a file"
|
||||
filename = QtGui.QFileDialog.getOpenFileName(self.form, _translate( "TooltableEditor", "Open tooltable", None), None, _translate("TooltableEditor", "Tooltable XML (*.xml);;HeeksCAD tooltable (*.tooltable)", None))
|
||||
filename = QtGui.QFileDialog.getOpenFileName(self.form, translate( "TooltableEditor", "Open tooltable", None), None, translate("TooltableEditor", "Tooltable XML (*.xml);;HeeksCAD tooltable (*.tooltable)", None))
|
||||
if filename[0]:
|
||||
listname = self.form.listView.selectedIndexes()[0].data()
|
||||
if self.TLM.read(filename, listname):
|
||||
@@ -503,7 +503,7 @@ class EditorPanel():
|
||||
|
||||
def exportFile(self):
|
||||
"imports a tooltable from a file"
|
||||
filename = QtGui.QFileDialog.getSaveFileName(self.form, _translate("TooltableEditor", "Save tooltable", None), None, _translate("TooltableEditor", "Tooltable XML (*.xml);;LinuxCNC tooltable (*.tbl)", None))
|
||||
filename = QtGui.QFileDialog.getSaveFileName(self.form, translate("TooltableEditor", "Save tooltable", None), None, translate("TooltableEditor", "Tooltable XML (*.xml);;LinuxCNC tooltable (*.tbl)", None))
|
||||
|
||||
if filename[0]:
|
||||
#listname = self.form.listView.selectedIndexes()[0].data()
|
||||
|
||||
Reference in New Issue
Block a user