Browse Source

Mark for translation: productionroaster.xml

Neal Wilson 9 years ago
parent
commit
8b65401d13
1 changed files with 17 additions and 17 deletions
  1. 17
    17
      config/Windows/productionroaster.xml

+ 17
- 17
config/Windows/productionroaster.xml View File

15
         </splitter>
15
         </splitter>
16
     </layout>
16
     </layout>
17
     <menu name="File">
17
     <menu name="File">
18
-        <item id="open" shortcut="Ctrl+O">Open</item>
19
-        <item id="save" shortcut="Ctrl+S">Save</item>
20
-        <item id="print" shortcut="Ctrl+P">Print</item>
21
-        <item id="export">Export CSV</item>
22
-        <item id="svgexport">Export XHTML+SVG</item>
18
+        <item id="open" shortcut="Ctrl+O">Open...</item>
19
+        <item id="save" shortcut="Ctrl+S">Save...</item>
20
+        <item id="print" shortcut="Ctrl+P">Print...</item>
21
+        <item id="export">Export CSV...</item>
22
+        <item id="svgexport">Export XHTML+SVG...</item>
23
         <item id="quit" shortcut="Ctrl+Q">Quit</item>
23
         <item id="quit" shortcut="Ctrl+Q">Quit</item>
24
     </menu>
24
     </menu>
25
     <menu name="Batch">
25
     <menu name="Batch">
26
         <item id="new" shortcut="Ctrl+N">New Batch…</item>
26
         <item id="new" shortcut="Ctrl+N">New Batch…</item>
27
-		<item id="newsample">New Sample Batch</item>
27
+		<item id="newsample">New Sample Batch...</item>
28
         <item id="compare">Load Additional Profiles...</item>
28
         <item id="compare">Load Additional Profiles...</item>
29
     </menu>
29
     </menu>
30
     <menu name="Log">
30
     <menu name="Log">
793
 			channelSkip++;
793
 			channelSkip++;
794
 		}
794
 		}
795
 	}
795
 	}
796
-	log.setHeaderData(columnNames.length + 1 - channelSkip, "Note");
796
+	log.setHeaderData(columnNames.length + 1 - channelSkip, TTR("basicWindow", "Note"));
797
 	var timer = new TimerDisplay;
797
 	var timer = new TimerDisplay;
798
 	timer.displayFormat = "mm:ss";
798
 	timer.displayFormat = "mm:ss";
799
 	timer.autoReset = true;
799
 	timer.autoReset = true;
800
-	var btdecorator = new WidgetDecorator(timer, "Batch Timer", 2);
800
+	var btdecorator = new WidgetDecorator(timer, TTR("basicWindow", "Batch Timer"), 2);
801
 	indicatorPanel.addWidget(btdecorator);
801
 	indicatorPanel.addWidget(btdecorator);
802
 	var vsplit = findChildObject(this, 'main');
802
 	var vsplit = findChildObject(this, 'main');
803
 	var isplit = findChildObject(this, 'indicators');
803
 	var isplit = findChildObject(this, 'indicators');
1050
         compareMenu.triggered.connect(function() {
1050
         compareMenu.triggered.connect(function() {
1051
             QSettings.setValue('cseries', lc+1);
1051
             QSettings.setValue('cseries', lc+1);
1052
             var history = createReport("historyreport.xml");
1052
             var history = createReport("historyreport.xml");
1053
-            history.windowTitle = 'Typica - Roasting Log';
1053
+            history.windowTitle = TTR("basicWindow", "Typica - Roasting Log");
1054
         });
1054
         });
1055
         var printMenu = findChildObject(this, 'print');
1055
         var printMenu = findChildObject(this, 'print');
1056
         printMenu.triggered.connect(function() {
1056
         printMenu.triggered.connect(function() {
1057
             var exportWindow = createWindow("print");
1057
             var exportWindow = createWindow("print");
1058
-            exportWindow.windowTitle = "Typica - Print";
1058
+            exportWindow.windowTitle = TTR("basicWindow", "Typica - Print");
1059
             exportWindow.log = log;
1059
             exportWindow.log = log;
1060
         });
1060
         });
1061
         var svgExportMenu = findChildObject(this, 'svgexport');
1061
         var svgExportMenu = findChildObject(this, 'svgexport');
1062
         svgExportMenu.triggered.connect(function() {
1062
         svgExportMenu.triggered.connect(function() {
1063
             var exportWindow = createWindow("exportWindow");
1063
             var exportWindow = createWindow("exportWindow");
1064
-            exportWindow.windowTitle = "Typica - Export XHTML+SVG";
1064
+            exportWindow.windowTitle = TTR("basicWindow", "Typica - Export XHTML+SVG");
1065
             exportWindow.log = log;
1065
             exportWindow.log = log;
1066
         });
1066
         });
1067
         openMenu.triggered.connect(function() {
1067
         openMenu.triggered.connect(function() {
1068
-            var filename = QFileDialog.getOpenFileName(window, 'Open Log…', QSettings.value('script/lastDir', '') + '/');
1068
+            var filename = QFileDialog.getOpenFileName(window, TTR("basicWindow", "Open Log..."), QSettings.value('script/lastDir', '') + '/');
1069
             if(filename != '') {
1069
             if(filename != '') {
1070
                 var file = new QFile(filename);
1070
                 var file = new QFile(filename);
1071
                 var input = new XMLInput(file, 1);
1071
                 var input = new XMLInput(file, 1);
1103
 				graph.updatesEnabled = true;
1103
 				graph.updatesEnabled = true;
1104
                 window.windowTitle = 'Typica - [*]' + baseName(filename);
1104
                 window.windowTitle = 'Typica - [*]' + baseName(filename);
1105
                 QSettings.setValue("script/lastDir", dir(filename));
1105
                 QSettings.setValue("script/lastDir", dir(filename));
1106
-				log.newAnnotation("End", 1, lc);
1106
+				log.newAnnotation(TTR("basicWindow", "End"), 1, lc);
1107
             }
1107
             }
1108
         });
1108
         });
1109
 		var columnName = function(c) {
1109
 		var columnName = function(c) {
1125
 				zeroemitters[i].setColumn(c + i + 1);
1125
 				zeroemitters[i].setColumn(c + i + 1);
1126
 				log.setHeaderData(c + i + 1, columnName(i));
1126
 				log.setHeaderData(c + i + 1, columnName(i));
1127
 			}
1127
 			}
1128
-			log.setHeaderData(c + columnNames.length + 1 - channelSkip, "Note");
1128
+			log.setHeaderData(c + columnNames.length + 1 - channelSkip, TTR("basicWindow", "Note"));
1129
             stop.setTemperatureColumn(c + 1);
1129
             stop.setTemperatureColumn(c + 1);
1130
 			stop.setAnnotationColumn(c + columnNames.length + 1 - channelSkip);
1130
 			stop.setAnnotationColumn(c + columnNames.length + 1 - channelSkip);
1131
 			for(var i = 0; i < annotationButtons.length; i++)
1131
 			for(var i = 0; i < annotationButtons.length; i++)
1142
 		}
1142
 		}
1143
 		var saveMenu = findChildObject(this, 'save');
1143
 		var saveMenu = findChildObject(this, 'save');
1144
         saveMenu.triggered.connect(function() {
1144
         saveMenu.triggered.connect(function() {
1145
-            var filename = QFileDialog.getSaveFileName(window, "Save Log As…", QSettings.value("script/lastDir", "") + "/");
1145
+            var filename = QFileDialog.getSaveFileName(window, TTR("basicWindow", "Save Log As..."), QSettings.value("script/lastDir", "") + "/");
1146
             if(filename != "") {
1146
             if(filename != "") {
1147
                 var lc = Number(QSettings.value("liveColumn"));
1147
                 var lc = Number(QSettings.value("liveColumn"));
1148
                 var file = new QFile(filename);
1148
                 var file = new QFile(filename);
1168
         });
1168
         });
1169
 		var exportMenu = findChildObject(this, 'export');
1169
 		var exportMenu = findChildObject(this, 'export');
1170
         exportMenu.triggered.connect(function() {
1170
         exportMenu.triggered.connect(function() {
1171
-            var filename = QFileDialog.getSaveFileName(window, "Export CSV As…", QSettings.value("script/lastDir", "") + "/");
1171
+            var filename = QFileDialog.getSaveFileName(window, TTR("basicWindow", "Export CSV As..."), QSettings.value("script/lastDir", "") + "/");
1172
             if(filename != "") {
1172
             if(filename != "") {
1173
                 var lc = Number(QSettings.value("liveColumn"));
1173
                 var lc = Number(QSettings.value("liveColumn"));
1174
                 var file = new QFile(filename);
1174
                 var file = new QFile(filename);
1190
         var newMenu = findChildObject(this, 'new');
1190
         var newMenu = findChildObject(this, 'new');
1191
         newMenu.triggered.connect(function() {
1191
         newMenu.triggered.connect(function() {
1192
             var bwindow = createWindow("batchWindow");
1192
             var bwindow = createWindow("batchWindow");
1193
-            bwindow.windowTitle = "Typica - [*]New Batch";
1193
+            bwindow.windowTitle = TTR("basicWindow", "Typica - [*]New Batch");
1194
         });
1194
         });
1195
 		var newSampleMenu = findChildObject(this, 'newsample');
1195
 		var newSampleMenu = findChildObject(this, 'newsample');
1196
 		newSampleMenu.triggered.connect(function() {
1196
 		newSampleMenu.triggered.connect(function() {

Loading…
Cancel
Save