Browse Source

Mark for translation: itemtransactions.xml

Neal Wilson 9 years ago
parent
commit
dd354c7675
1 changed files with 19 additions and 19 deletions
  1. 19
    19
      config/Reports/itemtransactions.xml

+ 19
- 19
config/Reports/itemtransactions.xml View File

18
 	</menu>
18
 	</menu>
19
 	<program>
19
 	<program>
20
 		<![CDATA[
20
 		<![CDATA[
21
-			this.windowTitle = "Typica - Item Transactions";
21
+			this.windowTitle = TTR("item_transactions", "Typica - Item Transactions");
22
 			var itemBox = findChildObject(this, 'item');
22
 			var itemBox = findChildObject(this, 'item');
23
 			var unitBox = findChildObject(this, 'unit');
23
 			var unitBox = findChildObject(this, 'unit');
24
-			unitBox.addItem("Kg");
25
-			unitBox.addItem("Lb");
24
+			unitBox.addItem(TTR("item_transactions", "Kg"));
25
+			unitBox.addItem(TTR("item_transactions", "Lb"));
26
 			unitBox.currentIndex = QSettings.value("script/report_unit", 1);
26
 			unitBox.currentIndex = QSettings.value("script/report_unit", 1);
27
 			unitBox['currentIndexChanged(int)'].connect(function() {
27
 			unitBox['currentIndexChanged(int)'].connect(function() {
28
 				QSettings.setValue("script/report_unit", unitBox.currentIndex);
28
 				QSettings.setValue("script/report_unit", unitBox.currentIndex);
45
 				output.writeStartElement("html");
45
 				output.writeStartElement("html");
46
 				output.writeAttribute("xmlns", "http://www.w3.org/1999/xhtml");
46
 				output.writeAttribute("xmlns", "http://www.w3.org/1999/xhtml");
47
 				output.writeStartElement("head");
47
 				output.writeStartElement("head");
48
-				output.writeTextElement("title", "Item Transactions");
48
+				output.writeTextElement("title", TTR("item_transactions", "Item Transactions"));
49
 				output.writeStartElement("script");
49
 				output.writeStartElement("script");
50
 				var scriptFile = new QFile(QSettings.value("config") + "/Scripts/d3.min.js");
50
 				var scriptFile = new QFile(QSettings.value("config") + "/Scripts/d3.min.js");
51
 				scriptFile.open(1);
51
 				scriptFile.open(1);
64
 				
64
 				
65
 				output.writeEndElement();
65
 				output.writeEndElement();
66
 				output.writeStartElement("body");
66
 				output.writeStartElement("body");
67
-				output.writeTextElement("h1", "Item Transactions:");
67
+				output.writeTextElement("h1", TTR("item_transactions", "Item Transactions:"));
68
 				output.writeStartElement("table");
68
 				output.writeStartElement("table");
69
 				output.writeStartElement("tr");
69
 				output.writeStartElement("tr");
70
 				output.writeStartElement("td");
70
 				output.writeStartElement("td");
77
 				query.exec();
77
 				query.exec();
78
 				if(query.next()) {
78
 				if(query.next()) {
79
 					output.writeStartElement("td");
79
 					output.writeStartElement("td");
80
-					output.writeTextElement("strong", "Reference: ");
80
+					output.writeTextElement("strong", TTR("item_transactions", "Reference: "));
81
 					output.writeTextElement("span", query.value(0));
81
 					output.writeTextElement("span", query.value(0));
82
 					output.writeEndElement(); // td
82
 					output.writeEndElement(); // td
83
 					output.writeStartElement("td");
83
 					output.writeStartElement("td");
84
-					output.writeTextElement("strong", "Category: ");
84
+					output.writeTextElement("strong", TTR("item_transactions", "Category: "));
85
 					output.writeTextElement("span", query.value(1));
85
 					output.writeTextElement("span", query.value(1));
86
 					output.writeEndElement(); //td
86
 					output.writeEndElement(); //td
87
 					output.writeEndElement(); //tr
87
 					output.writeEndElement(); //tr
91
 					if(query.next()) {
91
 					if(query.next()) {
92
 						output.writeStartElement("tr");
92
 						output.writeStartElement("tr");
93
 						output.writeStartElement("td");
93
 						output.writeStartElement("td");
94
-						output.writeTextElement("strong", "Origin: ");
94
+						output.writeTextElement("strong", TTR("item_transactions", "Origin: "));
95
 						output.writeTextElement("span", query.value(0));
95
 						output.writeTextElement("span", query.value(0));
96
 						output.writeEndElement(); // td
96
 						output.writeEndElement(); // td
97
 						output.writeStartElement("td");
97
 						output.writeStartElement("td");
98
-						output.writeTextElement("strong", "Region: ");
98
+						output.writeTextElement("strong", TTR("item_transactions", "Region: "));
99
 						output.writeTextElement("span", query.value(1));
99
 						output.writeTextElement("span", query.value(1));
100
 						output.writeEndElement(); // td
100
 						output.writeEndElement(); // td
101
 						output.writeStartElement("td");
101
 						output.writeStartElement("td");
102
-						output.writeTextElement("strong", "Producer: ");
102
+						output.writeTextElement("strong", TTR("item_transactions", "Producer: "));
103
 						output.writeTextElement("span", query.value(2));
103
 						output.writeTextElement("span", query.value(2));
104
 						output.writeEndElement(); // td
104
 						output.writeEndElement(); // td
105
 						output.writeEndElement(); // tr
105
 						output.writeEndElement(); // tr
106
 						output.writeStartElement("tr");
106
 						output.writeStartElement("tr");
107
 						output.writeStartElement("td");
107
 						output.writeStartElement("td");
108
-						output.writeTextElement("strong", "Grade: ");
108
+						output.writeTextElement("strong", TTR("item_transactions", "Grade: "));
109
 						output.writeTextElement("span", query.value(3));
109
 						output.writeTextElement("span", query.value(3));
110
 						output.writeEndElement(); // td
110
 						output.writeEndElement(); // td
111
 						output.writeStartElement("td");
111
 						output.writeStartElement("td");
112
-						output.writeTextElement("strong", "Milling: ");
112
+						output.writeTextElement("strong", TTR("item_transactions", "Milling: "));
113
 						output.writeTextElement("span", query.value(4));
113
 						output.writeTextElement("span", query.value(4));
114
 						output.writeEndElement(); // td
114
 						output.writeEndElement(); // td
115
 						output.writeStartElement("td");
115
 						output.writeStartElement("td");
116
-						output.writeTextElement("strong", "Drying: ");
116
+						output.writeTextElement("strong", TTR("item_transactions", "Drying: "));
117
 						output.writeTextElement("span", query.value(5));
117
 						output.writeTextElement("span", query.value(5));
118
 						output.writeEndElement(); // td
118
 						output.writeEndElement(); // td
119
 						output.writeEndElement(); // tr
119
 						output.writeEndElement(); // tr
124
 							output.writeStartElement("tr");
124
 							output.writeStartElement("tr");
125
 							output.writeStartElement("td");
125
 							output.writeStartElement("td");
126
 							output.writeAttribute("colspan", "3");
126
 							output.writeAttribute("colspan", "3");
127
-							output.writeTextElement("strong", "Decaffeination Method: ");
127
+							output.writeTextElement("strong", TTR("item_transactions", "Decaffeination Method: "));
128
 							output.writeTextElement("span", query.value(0));
128
 							output.writeTextElement("span", query.value(0));
129
 							output.writeEndElement(); // td
129
 							output.writeEndElement(); // td
130
 							output.writeEndElement(); // tr
130
 							output.writeEndElement(); // tr
192
 					query.exec();
192
 					query.exec();
193
 					output.writeStartElement("table");
193
 					output.writeStartElement("table");
194
 					output.writeStartElement("tr");
194
 					output.writeStartElement("tr");
195
-					output.writeTextElement("th", "Date");
196
-					output.writeTextElement("th", "Type");
197
-					output.writeTextElement("th", "Quantity");
198
-					output.writeTextElement("th", "Balance");
199
-					output.writeTextElement("th", "Record");
195
+					output.writeTextElement("th", TTR("item_transactions", "Date"));
196
+					output.writeTextElement("th", TTR("item_transactions", "Type"));
197
+					output.writeTextElement("th", TTR("item_transactions", "Quantity"));
198
+					output.writeTextElement("th", TTR("item_transactions", "Balance"));
199
+					output.writeTextElement("th", TTR("item_transactions", "Record"));
200
 					output.writeEndElement(); // tr
200
 					output.writeEndElement(); // tr
201
 					var prev_balance = "0";
201
 					var prev_balance = "0";
202
 					var prev_prec = 0;
202
 					var prev_prec = 0;

Loading…
Cancel
Save