Sfoglia il codice sorgente

Make window titles translatable

Neal Wilson 7 anni fa
parent
commit
99eb1e20d5

+ 1
- 1
config/Reports/dailyproductiondetail.xml Vedi File

@@ -17,7 +17,7 @@
17 17
 	</menu>
18 18
 	<program>
19 19
 		<![CDATA[
20
-			this.windowTitle = "Typica - Daily Production Report";
20
+			this.windowTitle = TTR("dailyproduction", "Typica - Daily Production Report");
21 21
 			var dateField = findChildObject(this, 'reportdate');
22 22
 			var view = findChildObject(this, 'report');
23 23
 			var printMenu = findChildObject(this, 'print');

+ 1
- 1
config/Windows/cuppingsessionlist.xml Vedi File

@@ -14,7 +14,7 @@
14 14
                 query.exec();
15 15
                 query.next();
16 16
                 var formwindow = createWindow("cuppingform");
17
-                formwindow.windowTitle = "Typica - Cupping";
17
+                formwindow.windowTitle = TTR("sessionlist", "Typica - Cupping");
18 18
                 var sessionfield = findChildObject(formwindow, 'session');
19 19
                 sessionfield.text = arg;
20 20
                 var eventfield = findChildObject(formwindow, 'event');

+ 1
- 1
config/Windows/editfee.xml Vedi File

@@ -16,7 +16,7 @@
16 16
 		<![CDATA[
17 17
 			window = this;
18 18
                         var invoiceID = 0;
19
-			this.windowTitle = 'Typica - Fee Detail';
19
+			this.windowTitle = TTR("invoicefeedetail", "Typica - Fee Detail");
20 20
 			var descField = findChildObject(this, 'description');
21 21
 			var costField = findChildObject(this, 'cost');
22 22
 			this.dataSet = function() {

+ 2
- 2
config/Windows/manuallogentry.xml Vedi File

@@ -136,7 +136,7 @@
136 136
 	<program>
137 137
 	<![CDATA[
138 138
 		var window = this;
139
-		this.windowTitle = "Typica - Manual Log Entry";
139
+		this.windowTitle = TTR("manualLogEntry", "Typica - Manual Log Entry");
140 140
 		window.windowReady.connect(function() {
141 141
 			if(machineModel.rowCount() == 0) {
142 142
 				displayError(TTR("manualLogEntry", "Configuration Required"),
@@ -493,4 +493,4 @@
493 493
 		});
494 494
 	]]>
495 495
 	</program>
496
-</window>
496
+</window>

+ 7
- 7
config/Windows/navigation.xml Vedi File

@@ -111,29 +111,29 @@
111 111
         var sumcup = findChildObject(this, 'sumcupping');
112 112
         sumcup.clicked.connect(function() {
113 113
             var sessionlist = createWindow("finsessionlist");
114
-            sessionlist.windowTitle = "Typica - Summarize Cupping Session";
114
+            sessionlist.windowTitle = TTR("navwindow", "Typica - Summarize Cupping Session");
115 115
         });
116 116
         var ncsbutton = findChildObject(this, 'createcupping')
117 117
         ncsbutton.clicked.connect(function() {
118 118
             var ncswindow = createWindow("session");
119
-            ncswindow.windowTitle = "Typica - New Cupping Session";
119
+            ncswindow.windowTitle = TTR("navwindow", "Typica - New Cupping Session");
120 120
         });
121 121
         var jcsbutton = findChildObject(this, 'joincupping')
122 122
         jcsbutton.clicked.connect(function() {
123 123
             var jcswindow = createWindow("sessionlist");
124
-            jcswindow.windowTitle = "Typica - Join Cupping Session";
124
+            jcswindow.windowTitle = TTR("navwindow", "Typica - Join Cupping Session");
125 125
         });
126 126
 		/*
127 127
         var nrbutton = findChildObject(this, 'newroaster');
128 128
         nrbutton.clicked.connect(function() {
129 129
             var nrwindow = createWindow("newroaster");
130
-            nrwindow.windowTitle = "Typica - New Roaster";
130
+            nrwindow.windowTitle = TTR("navwindow", "Typica - New Roaster");
131 131
         });
132 132
 		*/
133 133
         var inventory = findChildObject(this, 'inventory');
134 134
         inventory.clicked.connect(function() {
135 135
             var invwin = createWindow("inventory");
136
-            invwin.windowTitle = "Typica - Inventory";
136
+            invwin.windowTitle = TTR("navwindow", "Typica - Inventory");
137 137
         });
138 138
         var roastspecbutton = findChildObject(this, 'roastspec');
139 139
         roastspecbutton.clicked.connect(function() {
@@ -146,12 +146,12 @@
146 146
         var nrbutton = findChildObject(this, 'newroasted');
147 147
         nrbutton.clicked.connect(function() {
148 148
             var nrwindow = createWindow("newroasted");
149
-            nrwindow.windowTitle = "Manage Roasted Coffee Items";
149
+            nrwindow.windowTitle = TTR("navwindow", "Manage Roasted Coffee Items");
150 150
         });
151 151
         var importb = findChildObject(this, 'target');
152 152
         importb.clicked.connect(function() {
153 153
             var importWindow = createWindow("importTargets");
154
-            importWindow.windowTitle = "Typica - Import Target Roast Profiles";
154
+            importWindow.windowTitle = TTR("navwindow", "Typica - Import Target Roast Profiles");
155 155
         });
156 156
         var roastbutton = findChildObject(this, 'roast');
157 157
         roastbutton.clicked.connect(function() {

+ 1
- 1
config/Windows/newbatch.xml Vedi File

@@ -131,7 +131,7 @@
131 131
             var newMenu = findChildObject(this, 'new');
132 132
             newMenu.triggered.connect(function() {
133 133
                 var bwindow = createWindow("batchWindow");
134
-                bwindow.windowTitle = "Typica - [*]New Batch";
134
+                bwindow.windowTitle = TTR("batchWindow", "Typica - [*]New Batch");
135 135
             });
136 136
             var batch = this;
137 137
             var table = findChildObject(this, 'greens');

+ 1
- 1
config/Windows/productionroaster.xml Vedi File

@@ -549,7 +549,7 @@
549 549
 					nsparam.enabled = true;
550 550
 					nsparam.triggered.connect(function() {
551 551
 						var setParam = createWindow("sampleParameters");
552
-						setParam.windowTitle = "Typica - Set Sample Parameters";
552
+						setParam.windowTitle = TTR("basicWindow", "Typica - Set Sample Parameters");
553 553
 						setParam.button = button;
554 554
 					});
555 555
 				}

Loading…
Annulla
Salva