Browse Source

Mark for translation: inventory.xml

Neal Wilson 8 years ago
parent
commit
a1f75e996e
1 changed files with 30 additions and 30 deletions
  1. 30
    30
      config/Reports/inventory.xml

+ 30
- 30
config/Reports/inventory.xml View File

@@ -15,31 +15,31 @@
15 15
     </menu>
16 16
     <program>
17 17
         <![CDATA[
18
-            this.windowTitle = "Typica - Current Inventory and Availability Projection";
18
+            this.windowTitle = TTR("inventoryreport", "Typica - Current Inventory and Availability Projection");
19 19
             var report = findChildObject(this, 'report');
20 20
             var printMenu = findChildObject(this, 'print');
21 21
             printMenu.triggered.connect(function() {
22 22
                 report.print();
23 23
             });
24 24
             var sortBox = findChildObject(this, 'sort');
25
-            sortBox.addItem("Coffee A-Z");
26
-            sortBox.addItem("Coffee Z-A");
27
-            sortBox.addItem("Stock Ascending");
28
-            sortBox.addItem("Stock Descending");
29
-            sortBox.addItem("Sacks Ascending");
30
-            sortBox.addItem("Sacks Descending");
31
-            sortBox.addItem("Unit Cost Ascending");
32
-            sortBox.addItem("Unit Cost Descending");
33
-            sortBox.addItem("Stock Cost Ascending");
34
-            sortBox.addItem("Stock Cost Descending");
35
-            sortBox.addItem("Use Rate Ascending");
36
-            sortBox.addItem("Use Rate Descending");
37
-            sortBox.addItem("Availability Shortest-Longest");
38
-            sortBox.addItem("Availability Longest-Shortest");
25
+            sortBox.addItem(TTR("inventoryreport", "Coffee A-Z"));
26
+            sortBox.addItem(TTR("inventoryreport", "Coffee Z-A"));
27
+            sortBox.addItem(TTR("inventoryreport", "Stock Ascending"));
28
+            sortBox.addItem(TTR("inventoryreport", "Stock Descending"));
29
+            sortBox.addItem(TTR("inventoryreport", "Sacks Ascending"));
30
+            sortBox.addItem(TTR("inventoryreport", "Sacks Descending"));
31
+            sortBox.addItem(TTR("inventoryreport", "Unit Cost Ascending"));
32
+            sortBox.addItem(TTR("inventoryreport", "Unit Cost Descending"));
33
+            sortBox.addItem(TTR("inventoryreport", "Stock Cost Ascending"));
34
+            sortBox.addItem(TTR("inventoryreport", "Stock Cost Descending"));
35
+            sortBox.addItem(TTR("inventoryreport", "Use Rate Ascending"));
36
+            sortBox.addItem(TTR("inventoryreport", "Use Rate Descending"));
37
+            sortBox.addItem(TTR("inventoryreport", "Availability Shortest-Longest"));
38
+            sortBox.addItem(TTR("inventoryreport", "Availability Longest-Shortest"));
39 39
             sortBox.currentIndex = QSettings.value("inventory_sort", 0);
40 40
 			var unitBox = findChildObject(this, 'unit');
41
-			unitBox.addItem("Kg");
42
-			unitBox.addItem("Lb");
41
+			unitBox.addItem(TTR("inventoryreport", "Kg"));
42
+			unitBox.addItem(TTR("inventoryreport", "Lb"));
43 43
 			unitBox.currentIndex = QSettings.value("script/report_unit", 1);
44 44
             function refresh() {
45 45
                 var buffer = new QBuffer;
@@ -50,31 +50,31 @@
50 50
                 output.writeStartElement("html");
51 51
                 output.writeAttribute("xmlns", "http://www.w3.org/1999/xhtml");
52 52
                 output.writeStartElement("head");
53
-                output.writeTextElement("title", "Current Inventory and Availability Projection");
53
+                output.writeTextElement("title", TTR("inventoryreport", "Current Inventory and Availability Projection"));
54 54
                 output.writeEndElement();
55 55
                 output.writeStartElement("body");
56
-                output.writeTextElement("h1", "Current Inventory and Availability Projection");
57
-                output.writeTextElement("p", "This is a report showing how much of each coffee is available, the cost of that coffee, the daily rate of use for that coffee, and the date the coffee will be gone if use continues at the current rate.");
56
+                output.writeTextElement("h1", TTR("inventoryreport", "Current Inventory and Availability Projection"));
57
+                output.writeTextElement("p", TTR("inventoryreport", "This is a report showing how much of each coffee is available, the cost of that coffee, the daily rate of use for that coffee, and the date the coffee will be gone if use continues at the current rate."));
58 58
                 output.writeStartElement("table");
59 59
                 output.writeAttribute("rules", "groups");
60 60
                 output.writeAttribute("cellpadding", "3px");
61 61
                 output.writeStartElement("thead");
62 62
                 output.writeStartElement("tr");
63
-                output.writeTextElement("th", "Coffee");
63
+                output.writeTextElement("th", TTR("inventoryreport", "Coffee"));
64 64
 				switch(unitBox.currentIndex)
65 65
 				{
66 66
 					case 0:
67
-						output.writeTextElement("th", "Stock (Kg)");
67
+						output.writeTextElement("th", TTR("inventoryreport", "Stock (Kg)"));
68 68
 						break;
69 69
 					case 1:
70
-						output.writeTextElement("th", "Stock (Lb)");
70
+						output.writeTextElement("th", TTR("inventoryreport", "Stock (Lb)"));
71 71
 						break;
72 72
 				}
73
-                output.writeTextElement("th", "Sacks");
74
-                output.writeTextElement("th", "Unit Cost");
75
-                output.writeTextElement("th", "Stock Cost");
76
-                output.writeTextElement("th", "Use Rate");
77
-                output.writeTextElement("th", "Availability");
73
+                output.writeTextElement("th", TTR("inventoryreport", "Sacks"));
74
+                output.writeTextElement("th", TTR("inventoryreport", "Unit Cost"));
75
+                output.writeTextElement("th", TTR("inventoryreport", "Stock Cost"));
76
+                output.writeTextElement("th", TTR("inventoryreport", "Use Rate"));
77
+                output.writeTextElement("th", TTR("inventoryreport", "Availability"));
78 78
                 output.writeEndElement();
79 79
                 output.writeEndElement();
80 80
                 output.writeStartElement("tbody");
@@ -155,7 +155,7 @@
155 155
                 output.writeEndElement();
156 156
                 output.writeStartElement("tfoot");
157 157
                 output.writeStartElement("tr");
158
-                output.writeTextElement("th", "Totals");
158
+                output.writeTextElement("th", TTR("inventoryreport", "Totals"));
159 159
                 query.prepare("SELECT (sum(quantity) / :conversion)::numeric(12,2), sum(quantity * (SELECT cost FROM purchase WHERE item = id))::numeric(12,2) FROM items WHERE quantity > 0");
160 160
 				switch(unitBox.currentIndex)
161 161
 				{
@@ -175,7 +175,7 @@
175 175
                 output.writeTextElement("td", "");
176 176
                 output.writeTextElement("td", "");
177 177
                 query = query.invalidate();
178
-				output.writeEndElement();
178
+                output.writeEndElement();
179 179
                 output.writeEndElement();
180 180
                 output.writeEndElement();
181 181
                 output.writeEndElement();

Loading…
Cancel
Save