Browse Source

Mark for translation: productionroaster.xml

Neal Wilson 8 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,16 +15,16 @@
15 15
         </splitter>
16 16
     </layout>
17 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 23
         <item id="quit" shortcut="Ctrl+Q">Quit</item>
24 24
     </menu>
25 25
     <menu name="Batch">
26 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 28
         <item id="compare">Load Additional Profiles...</item>
29 29
     </menu>
30 30
     <menu name="Log">
@@ -793,11 +793,11 @@
793 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 797
 	var timer = new TimerDisplay;
798 798
 	timer.displayFormat = "mm:ss";
799 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 801
 	indicatorPanel.addWidget(btdecorator);
802 802
 	var vsplit = findChildObject(this, 'main');
803 803
 	var isplit = findChildObject(this, 'indicators');
@@ -1050,22 +1050,22 @@
1050 1050
         compareMenu.triggered.connect(function() {
1051 1051
             QSettings.setValue('cseries', lc+1);
1052 1052
             var history = createReport("historyreport.xml");
1053
-            history.windowTitle = 'Typica - Roasting Log';
1053
+            history.windowTitle = TTR("basicWindow", "Typica - Roasting Log");
1054 1054
         });
1055 1055
         var printMenu = findChildObject(this, 'print');
1056 1056
         printMenu.triggered.connect(function() {
1057 1057
             var exportWindow = createWindow("print");
1058
-            exportWindow.windowTitle = "Typica - Print";
1058
+            exportWindow.windowTitle = TTR("basicWindow", "Typica - Print");
1059 1059
             exportWindow.log = log;
1060 1060
         });
1061 1061
         var svgExportMenu = findChildObject(this, 'svgexport');
1062 1062
         svgExportMenu.triggered.connect(function() {
1063 1063
             var exportWindow = createWindow("exportWindow");
1064
-            exportWindow.windowTitle = "Typica - Export XHTML+SVG";
1064
+            exportWindow.windowTitle = TTR("basicWindow", "Typica - Export XHTML+SVG");
1065 1065
             exportWindow.log = log;
1066 1066
         });
1067 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 1069
             if(filename != '') {
1070 1070
                 var file = new QFile(filename);
1071 1071
                 var input = new XMLInput(file, 1);
@@ -1103,7 +1103,7 @@
1103 1103
 				graph.updatesEnabled = true;
1104 1104
                 window.windowTitle = 'Typica - [*]' + baseName(filename);
1105 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 1109
 		var columnName = function(c) {
@@ -1125,7 +1125,7 @@
1125 1125
 				zeroemitters[i].setColumn(c + i + 1);
1126 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 1129
             stop.setTemperatureColumn(c + 1);
1130 1130
 			stop.setAnnotationColumn(c + columnNames.length + 1 - channelSkip);
1131 1131
 			for(var i = 0; i < annotationButtons.length; i++)
@@ -1142,7 +1142,7 @@
1142 1142
 		}
1143 1143
 		var saveMenu = findChildObject(this, 'save');
1144 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 1146
             if(filename != "") {
1147 1147
                 var lc = Number(QSettings.value("liveColumn"));
1148 1148
                 var file = new QFile(filename);
@@ -1168,7 +1168,7 @@
1168 1168
         });
1169 1169
 		var exportMenu = findChildObject(this, 'export');
1170 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 1172
             if(filename != "") {
1173 1173
                 var lc = Number(QSettings.value("liveColumn"));
1174 1174
                 var file = new QFile(filename);
@@ -1190,7 +1190,7 @@
1190 1190
         var newMenu = findChildObject(this, 'new');
1191 1191
         newMenu.triggered.connect(function() {
1192 1192
             var bwindow = createWindow("batchWindow");
1193
-            bwindow.windowTitle = "Typica - [*]New Batch";
1193
+            bwindow.windowTitle = TTR("basicWindow", "Typica - [*]New Batch");
1194 1194
         });
1195 1195
 		var newSampleMenu = findChildObject(this, 'newsample');
1196 1196
 		newSampleMenu.triggered.connect(function() {

Loading…
Cancel
Save