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

Loading…
Cancel
Save