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