|
@@ -11,10 +11,10 @@
|
11
|
11
|
</splitter>
|
12
|
12
|
</layout>
|
13
|
13
|
<menu name="File">
|
14
|
|
- <item id="save" shortcut="Ctrl+S">Save…</item>
|
15
|
|
- <item id="print" shortcut="Ctrl+P">Print…</item>
|
16
|
|
- <item id="export">Export CSV…</item>
|
17
|
|
- <item id="svgexport">Export XHTML+SVG…</item>
|
|
14
|
+ <item id="save" shortcut="Ctrl+S">Save...</item>
|
|
15
|
+ <item id="print" shortcut="Ctrl+P">Print...</item>
|
|
16
|
+ <item id="export">Export CSV...</item>
|
|
17
|
+ <item id="svgexport">Export XHTML+SVG...</item>
|
18
|
18
|
<item id="quit" shortcut="Ctrl+Q">Quit</item>
|
19
|
19
|
</menu>
|
20
|
20
|
<menu name="Log">
|
|
@@ -54,7 +54,7 @@
|
54
|
54
|
};
|
55
|
55
|
var saveMenu = findChildObject(this, 'save');
|
56
|
56
|
saveMenu.triggered.connect(function() {
|
57
|
|
- var filename = QFileDialog.getSaveFileName(window, "Save Log As…", QSettings.value("script/lastDir", "") + "/");
|
|
57
|
+ var filename = QFileDialog.getSaveFileName(window, TTR("offline", "Save Log As..."), QSettings.value("script/lastDir", "") + "/");
|
58
|
58
|
if(filename != "") {
|
59
|
59
|
var file = new QFile(filename);
|
60
|
60
|
setLogOutputColumns();
|
|
@@ -65,12 +65,12 @@
|
65
|
65
|
var printMenu = findChildObject(this, 'print');
|
66
|
66
|
printMenu.triggered.connect(function() {
|
67
|
67
|
var exportWindow = createWindow("print");
|
68
|
|
- exportWindow.windowTitle = "Typica - Print";
|
|
68
|
+ exportWindow.windowTitle = TTR("offline", "Typica - Print");
|
69
|
69
|
exportWindow.log = log;
|
70
|
70
|
});
|
71
|
71
|
var exportMenu = findChildObject(this, 'export');
|
72
|
72
|
exportMenu.triggered.connect(function() {
|
73
|
|
- var filename = QFileDialog.getSaveFileName(window, "Export CSV As…", QSettings.value("script/lastDir", "") + "/");
|
|
73
|
+ var filename = QFileDialog.getSaveFileName(window, TTR("offline", "Export CSV As..."), QSettings.value("script/lastDir", "") + "/");
|
74
|
74
|
if(filename != "") {
|
75
|
75
|
var file = new QFile(filename);
|
76
|
76
|
setLogOutputColumns();
|
|
@@ -81,7 +81,7 @@
|
81
|
81
|
var svgExportMenu = findChildObject(this, 'svgexport');
|
82
|
82
|
svgExportMenu.triggered.connect(function() {
|
83
|
83
|
var exportWindow = createWindow("exportWindow");
|
84
|
|
- exportWindow.windowTitle = "Typica - Export XHTML+SVG";
|
|
84
|
+ exportWindow.windowTitle = TTR("offline", "Typica - Export XHTML+SVG");
|
85
|
85
|
exportWindow.log = log;
|
86
|
86
|
});
|
87
|
87
|
var quitMenu = findChildObject(this, 'quit');
|