Преглед на файлове

Mark for translation: greeninventory.xml

Neal Wilson преди 8 години
родител
ревизия
94c0387225
променени са 1 файла, в които са добавени 11 реда и са изтрити 10 реда
  1. 11
    10
      config/Windows/greeninventory.xml

+ 11
- 10
config/Windows/greeninventory.xml Целия файл

@@ -30,13 +30,13 @@
30 30
     <program>
31 31
         <![CDATA[
32 32
             var types = findChildObject(this, 'transactiontype');
33
-            types.addItem("inventory");
34
-            types.addItem("loss");
33
+            types.addItem(TTR("inventory", "inventory"));
34
+            types.addItem(TTR("inventory", "loss");
35 35
             var optionalDisplay = findChildObject(this, 'optional');
36 36
             var units = findChildObject(this, 'units');
37
-            units.addItem("bag");
38
-            units.addItem("lb");
39
-            units.addItem("kg");
37
+            units.addItem(TTR("inventory", "bag"));
38
+            units.addItem(TTR("inventory", "Lb"));
39
+            units.addItem(TTR("inventory", "Kg"));
40 40
             var items = findChildObject(this, 'item');
41 41
             var status = findChildObject(this, 'current');
42 42
             function updateStatus() {
@@ -49,11 +49,12 @@
49 49
                 var text = items.currentText;
50 50
                 text += " Current inventory: ";
51 51
                 text += query.value(0);
52
-                text += " Lb (";
52
+                text += TTR("inventory", " Lb (");
53 53
                 text += query.value(1);
54
-                text += " Kg), ";
54
+                text += TTR("inventory", " Kg), ");
55 55
                 text += query.value(2);
56
-                text += (query.value(2) == "1" ? " bag" : " bags");
56
+                text += (query.value(2) == "1" ? TTR("inventory", " bag") :
57
+                    TTR("inventory", " bags"));
57 58
                 query = query.invalidate();
58 59
                 status.plainText = text;
59 60
             }
@@ -70,9 +71,9 @@
70 71
                 q += " VALUES ('now', ";
71 72
                 q = q + items.currentData();
72 73
                 q = q + ", ";
73
-                if(units.currentText == "lb") {
74
+                if(units.currentText == TTR("inventory", "Lb")) {
74 75
                     q = q + value.text;
75
-                } else if (units.currentText == "kg") {
76
+                } else if (units.currentText == TTR("inventory", "Kg")) {
76 77
                     q = q + (value.text * 2.2);
77 78
                 }
78 79
                 else {

Loading…
Отказ
Запис