Selaa lähdekoodia

Mark for translation: newsamplebatch.xml

Neal Wilson 9 vuotta sitten
vanhempi
commit
71d152e69c
1 muutettua tiedostoa jossa 8 lisäystä ja 6 poistoa
  1. 8
    6
      config/Windows/newsamplebatch.xml

+ 8
- 6
config/Windows/newsamplebatch.xml Näytä tiedosto

@@ -98,7 +98,7 @@
98 98
 					var scale = navigationwindow.loggingWindow.scales[i];
99 99
 					var label = new DragLabel();
100 100
 					var weighButton = new QPushButton();
101
-					weighButton.text = "Weigh";
101
+					weighButton.text = TTR("sampleRoastingBatch", "Weigh");
102 102
 					weighButton.clicked.connect(scale.weigh);
103 103
 					label.updateMeasurement = function(m, u) {
104 104
 						switch(GunitBox.currentIndex) {
@@ -127,7 +127,7 @@
127 127
 			}
128 128
 			var submit = findChildObject(this, 'submit');
129 129
 			submit.setEnabled(false);
130
-			this.windowTitle = "Typica - New Sample Roasting Batch";
130
+			this.windowTitle = TTR("sampleRoastingBatch", "Typica - New Sample Roasting Batch");
131 131
 			var newMenu = findChildObject(this, 'new');
132 132
 			newMenu.triggered.connect(function() {
133 133
 				createWindow("sampleRoastingBatch");
@@ -192,7 +192,8 @@
192 192
                             if(validateCapacity()) {
193 193
                                 proceed = true;
194 194
                             } else {
195
-                                proceed = displayWarning("Suspicious Input", "Entered green coffee weight exceeds maximum batch size. Continue?");
195
+                                proceed = displayWarning(TTR("sampleRoastingBatch", "Suspicious Input"),
196
+                                TTR("sampleRoastingBatch", "Entered green coffee weight exceeds maximum batch size. Continue?"));
196 197
                             }
197 198
                             if(proceed) {
198 199
                                 doRoast();
@@ -251,11 +252,11 @@
251 252
 						input.input();
252 253
 						graph.updatesEnabled = true;
253 254
 						log.updatesEnabled = true;
254
-						log.newAnnotation("End", 1, lc);
255
+						log.newAnnotation(TTR("sampleRoastingBatch", "End"), 1, lc);
255 256
 					}
256 257
 				}
257 258
 				query = query.invalidate();
258
-				var t = "Typica - Sample Roasting: [*]" + name.text;
259
+				var t = TTR("sampleRoastingBatch", "Typica - Sample Roasting: [*]") + name.text;
259 260
 				if(profileName.currentText != '')
260 261
 				{
261 262
 					t = t + ", " + profileName.currentText;
@@ -274,7 +275,8 @@
274 275
                             if(validateCapacity()) {
275 276
                                 proceed = true;
276 277
                             } else {
277
-                                proceed = displayWarning("Suspicious Input", "Entered green coffee weight exceeds maximum batch size. Continue?");
278
+                                proceed = displayWarning(TTR("sampleRoastingBatch", "Suspicious Input"),
279
+                                TTR("sampleRoastingBatch", "Entered green coffee weight exceeds maximum batch size. Continue?"));
278 280
                             }
279 281
                             if(proceed) {
280 282
                                 doLoadProfile();

Loading…
Peruuta
Tallenna