Browse Source

Mark for translation: reminders.xml

Neal Wilson 9 years ago
parent
commit
ac972c6a57
1 changed files with 9 additions and 9 deletions
  1. 9
    9
      config/Reports/reminders.xml

+ 9
- 9
config/Reports/reminders.xml View File

9
     <program>
9
     <program>
10
         <![CDATA[
10
         <![CDATA[
11
             var window = this;
11
             var window = this;
12
-            this.windowTitle = "Typica - Reminders";
12
+            this.windowTitle = TTR("remindersreport", "Typica - Reminders");
13
             var report = findChildObject(this, 'report');
13
             var report = findChildObject(this, 'report');
14
             var printMenu = findChildObject(this, 'print');
14
             var printMenu = findChildObject(this, 'print');
15
             printMenu.triggered.connect(function() {
15
             printMenu.triggered.connect(function() {
28
                     if(reminder.condition == "PRODUCTIONWEIGHT")
28
                     if(reminder.condition == "PRODUCTIONWEIGHT")
29
                     {
29
                     {
30
                         var convert = 1;
30
                         var convert = 1;
31
-                        var unittext = " Lb";
31
+                        var unittext = TTR("remindersreport", " Lb");
32
                         if(reminder.unit == "KG")
32
                         if(reminder.unit == "KG")
33
                         {
33
                         {
34
                             convert = 2.2;
34
                             convert = 2.2;
35
-                            unittext = " Kg";
35
+                            unittext = TTR("remindersreport", " Kg");
36
                         }
36
                         }
37
                         var dq = new QSqlQuery;
37
                         var dq = new QSqlQuery;
38
                         dq.prepare("SELECT sum(roasted_quantity)/:conversion FROM roasting_log WHERE time > :since");
38
                         dq.prepare("SELECT sum(roasted_quantity)/:conversion FROM roasting_log WHERE time > :since");
74
                         }
74
                         }
75
                         remain = reminder.value - Number(dq.value(0));
75
                         remain = reminder.value - Number(dq.value(0));
76
                         reminder.completion = proportion;
76
                         reminder.completion = proportion;
77
-                        reminder.detail = remain + " Days";
77
+                        reminder.detail = remain + TTR("remindersreport", " Days");
78
                         dq = dq.invalidate();
78
                         dq = dq.invalidate();
79
                     }
79
                     }
80
                     else if(reminder.condition == "PRODUCTIONBATCHES")
80
                     else if(reminder.condition == "PRODUCTIONBATCHES")
96
                         }
96
                         }
97
                         remain = reminder.value - Number(dq.value(0));
97
                         remain = reminder.value - Number(dq.value(0));
98
                         reminder.completion = proportion;
98
                         reminder.completion = proportion;
99
-                        reminder.detail = remain + " Batches";
99
+                        reminder.detail = remain + TTR("remindersreport", " Batches");
100
                         dq = dq.invalidate();
100
                         dq = dq.invalidate();
101
                     }
101
                     }
102
                     else if(reminder.condition == "PRODUCTIONHOURS")
102
                     else if(reminder.condition == "PRODUCTIONHOURS")
118
                         }
118
                         }
119
                         remain = reminder.value - Number(dq.value(0));
119
                         remain = reminder.value - Number(dq.value(0));
120
                         reminder.completion = proportion;
120
                         reminder.completion = proportion;
121
-                        reminder.detail = remain.toFixed(1) + " Hours";
121
+                        reminder.detail = remain.toFixed(1) + TTR("remindersreport", " Hours");
122
                         dq = dq.invalidate();
122
                         dq = dq.invalidate();
123
                     }
123
                     }
124
                     e[reminder.dbid] = reminder;
124
                     e[reminder.dbid] = reminder;
136
                 output.writeStartElement("html");
136
                 output.writeStartElement("html");
137
                 output.writeAttribute("xmlns", "http://www.w3.org/1999/xhtml");
137
                 output.writeAttribute("xmlns", "http://www.w3.org/1999/xhtml");
138
                 output.writeStartElement("head");
138
                 output.writeStartElement("head");
139
-                output.writeTextElement("title", "Reminders");
139
+                output.writeTextElement("title", TTR("remindersreport", "Reminders"));
140
                 output.writeEndElement();
140
                 output.writeEndElement();
141
                 output.writeStartElement("body");
141
                 output.writeStartElement("body");
142
-                output.writeTextElement("h1", "Reminders");
142
+                output.writeTextElement("h1", TTR("remindersreport", "Reminders"));
143
                 output.writeStartElement("a");
143
                 output.writeStartElement("a");
144
                 output.writeAttribute("href", "typica://script/0");
144
                 output.writeAttribute("href", "typica://script/0");
145
                 output.writeStartElement("div");
145
                 output.writeStartElement("div");
149
                 output.writeEndElement();
149
                 output.writeEndElement();
150
                 output.writeStartElement("span");
150
                 output.writeStartElement("span");
151
                 output.writeAttribute("class", "title");
151
                 output.writeAttribute("class", "title");
152
-                output.writeCDATA("New Reminder");
152
+                output.writeCDATA(TTR("remindersreport", "New Reminder"));
153
                 output.writeEndElement();
153
                 output.writeEndElement();
154
                 output.writeEndElement();
154
                 output.writeEndElement();
155
                 output.writeEndElement();
155
                 output.writeEndElement();

Loading…
Cancel
Save