Browse Source

Mark for translation: newsamplebatch.xml

Neal Wilson 9 years ago
parent
commit
71d152e69c
1 changed files with 8 additions and 6 deletions
  1. 8
    6
      config/Windows/newsamplebatch.xml

+ 8
- 6
config/Windows/newsamplebatch.xml View File

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

Loading…
Cancel
Save