Browse Source

Make window titles translatable

Neal Wilson 7 years ago
parent
commit
99eb1e20d5

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

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

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

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

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

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

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

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

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

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

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

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

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

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

Loading…
Cancel
Save