Pārlūkot izejas kodu

Mark for translation: invoices.xml

Neal Wilson 9 gadus atpakaļ
vecāks
revīzija
829852da4e
1 mainītis faili ar 8 papildinājumiem un 8 dzēšanām
  1. 8
    8
      config/Reports/invoices.xml

+ 8
- 8
config/Reports/invoices.xml Parādīt failu

@@ -17,7 +17,7 @@
17 17
     <program>
18 18
         <![CDATA[
19 19
             var vendor = findChildObject(this, "vendor");
20
-            vendor.addItem("Any");
20
+            vendor.addItem(TTR("invoicereport", "Any"));
21 21
             var query = new QSqlQuery();
22 22
             query.exec("SELECT DISTINCT vendor FROM invoices");
23 23
             while(query.next()) {
@@ -68,20 +68,20 @@
68 68
                 output.writeStartElement("html");
69 69
                 output.writeAttribute("xmlns", "http://www.w3.org/1999/xhtml");
70 70
                 output.writeStartElement("head");
71
-                output.writeTextElement("title", "Invoices");
71
+                output.writeTextElement("title", TTR("invoicereport", "Invoices"));
72 72
                 output.writeEndElement();
73 73
                 output.writeStartElement("body");
74
-                output.writeTextElement("h1", "Invoices " + startDate + " - " + endDate);
74
+                output.writeTextElement("h1", TTR("invoicereport", "Invoices ") + startDate + " - " + endDate);
75 75
                 output.writeStartElement("table");
76 76
                 output.writeAttribute("style", "page-break-after: auto; text-align: left");
77 77
                 output.writeAttribute("rules", "groups");
78 78
                 output.writeAttribute("cellpadding", "3px");
79 79
                 output.writeStartElement("thead");
80 80
                 output.writeStartElement("tr");
81
-                output.writeTextElement("th", "Date");
82
-                output.writeTextElement("th", "Vendor");
83
-                output.writeTextElement("th", "Invoice");
84
-                output.writeTextElement("th", "Cost");
81
+                output.writeTextElement("th", TTR("invoicereport", "Date"));
82
+                output.writeTextElement("th", TTR("invoicereport", "Vendor"));
83
+                output.writeTextElement("th", TTR("invoicereport", "Invoice"));
84
+                output.writeTextElement("th", TTR("invoicereport", "Cost"));
85 85
                 output.writeEndElement();
86 86
                 output.writeEndElement();
87 87
                 output.writeStartElement("tbody");
@@ -140,7 +140,7 @@
140 140
                 output.writeStartElement("tr");
141 141
                 output.writeEmptyElement("td");
142 142
                 output.writeEmptyElement("td");
143
-                output.writeTextElement("th", "Total:");
143
+                output.writeTextElement("th", TTR("invoicereport", "Total:"));
144 144
                 output.writeTextElement("td", Number(cost_sum).toFixed(2));
145 145
                 output.writeEndElement();
146 146
                 output.writeEndElement();

Notiek ielāde…
Atcelt
Saglabāt