Browse Source

Mark for translation newbatch.xml

Neal Wilson 9 years ago
parent
commit
32e9f23c58
1 changed files with 10 additions and 6 deletions
  1. 10
    6
      config/Windows/newbatch.xml

+ 10
- 6
config/Windows/newbatch.xml View File

1
 <window id="batchWindow">
1
 <window id="batchWindow">
2
     <menu name="Batch">
2
     <menu name="Batch">
3
-        <item id="new" shortcut="Ctrl+N">New Batch</item>
3
+        <item id="new" shortcut="Ctrl+N">New Batch...</item>
4
     </menu>
4
     </menu>
5
     <layout type="horizontal">
5
     <layout type="horizontal">
6
         <layout type="vertical">
6
         <layout type="vertical">
394
                 if(validateCapacity()) {
394
                 if(validateCapacity()) {
395
                     proceed = true;
395
                     proceed = true;
396
                 } else {
396
                 } else {
397
-                    proceed = displayWarning("Suspicious Input", "Entered green coffee weight exceeds maximum batch size. Continue?");
397
+                    proceed = displayWarning(TTR("batchWindow", "Suspicious Input"),
398
+                    TTR("batchWindow", "Entered green coffee weight exceeds maximum batch size. Continue?"));
398
                 }
399
                 }
399
                 if(proceed) {
400
                 if(proceed) {
400
                     doLoadProfile();
401
                     doLoadProfile();
468
                 input.input();
469
                 input.input();
469
                 log.updatesEnabled = true;
470
                 log.updatesEnabled = true;
470
                 graph.updatesEnabled = true;
471
                 graph.updatesEnabled = true;
471
-                log.newAnnotation("End", 1, lc);
472
+                log.newAnnotation(TTR("batchWindow", "End"), 1, lc);
472
             }
473
             }
473
             var noprofilebutton = findChildObject(this, 'noprofile');
474
             var noprofilebutton = findChildObject(this, 'noprofile');
474
             noprofilebutton.clicked.connect(function() {
475
             noprofilebutton.clicked.connect(function() {
476
                 if(validateCapacity()) {
477
                 if(validateCapacity()) {
477
                     proceed = true;
478
                     proceed = true;
478
                 } else {
479
                 } else {
479
-                    proceed = displayWarning("Suspicious Input", "Entered green coffee weight exceeds maximum batch size. Continue?");
480
+                    proceed = displayWarning(TTR("batchWindow", "Suspicious Input"),
481
+                    TTR("batchWindow", "Entered green coffee weight exceeds maximum batch size. Continue?"));
480
                 }
482
                 }
481
                 if(proceed) {
483
                 if(proceed) {
482
                     doNoProfile();
484
                     doNoProfile();
514
                 if(validateCapacity()) {
516
                 if(validateCapacity()) {
515
                     proceed = true;
517
                     proceed = true;
516
                 } else {
518
                 } else {
517
-                    proceed = displayWarning("Suspicious Input", "Entered green coffee weight exceeds maximum batch size. Continue?");
519
+                    proceed = displayWarning(TTR("batchWindow", "Suspicious Input"),
520
+                    TTR("batchWindow", "Entered green coffee weight exceeds maximum batch size. Continue?"));
518
                 }
521
                 }
519
                 if(proceed) {
522
                 if(proceed) {
520
                     if(checkSubmitEnable()) {
523
                     if(checkSubmitEnable()) {
521
                         doSubmit();
524
                         doSubmit();
522
                     } else {
525
                     } else {
523
-                        displayError("Incomplete Input", "Some required information is not available. Please check inputs and try again.");
526
+                        displayError(TTR("batchWindow", "Incomplete Input"),
527
+                        TTR("batchWindow", "Some required information is not available. Please check inputs and try again."));
524
                     }
528
                     }
525
                 }
529
                 }
526
             });
530
             });

Loading…
Cancel
Save