~baltix/gcompris-qt/0.97.1

« back to all changes in this revision

Viewing changes to src/activities/calendar/calendar_dataset.js

  • Committer: Mantas Kriaučiūnas
  • Date: 2020-07-06 18:07:11 UTC
  • Revision ID: baltix@gmail.com-20200706180711-g254osu02cn8bc8p
GCompris-QT 0.97.1 with Lithuanian translation

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/* GCompris - calendar_dataset.js
 
2
 *
 
3
 * Copyright (C) 2017 Amit Sagtani <asagtani06@gmail.com>
 
4
 *
 
5
 *   This program is free software; you can redistribute it and/or modify
 
6
 *   it under the terms of the GNU General Public License as published by
 
7
 *   the Free Software Foundation; either version 3 of the License, or
 
8
 *   (at your option) any later version.
 
9
 *
 
10
 *   This program is distributed in the hope that it will be useful,
 
11
 *   but WITHOUT ANY WARRANTY; without even the implied warranty of
 
12
 *   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 
13
 *   GNU General Public License for more details.
 
14
 *
 
15
 *   You should have received a copy of the GNU General Public License
 
16
 *   along with this program; if not, see <https://www.gnu.org/licenses/>.
 
17
 */
 
18
 
 
19
// Contains the questions, answers and calendar configurations of every level.
 
20
// Add more levels by inserting questions and answers below.
 
21
// Days of weeks are indexed from 0 i.e (Sunday = 0, Monday = 1, Tuesday = 2, .... ..... .... , Saturday = 6)
 
22
// Months of year are indexed from 0 i.e (January = 0, February = 1, March = 2, .... ..... ...., December = 11)
 
23
//[
 
24
    //MODES
 
25
      // findMonthOnly --> For questions based on finding month only.
 
26
      // findYearMonthDay --> For questions based on finding year, month and day.
 
27
      // findDayOfWeek --> For questions based on finding day of week only.
 
28
      // findDay --> For questions based on finding day of a given month and year.
 
29
// ]
 
30
 
 
31
function get() {
 
32
    return [
 
33
                [ // Level 1
 
34
                 [ // Level 1 Configurations
 
35
                  {
 
36
                      "navigationBarVisible" : false,
 
37
                      "minimumDate": "2018-03-01",
 
38
                      "maximumDate": "2018-03-31",
 
39
                      "visibleMonth": 2,
 
40
                      "visibleYear": 2018,
 
41
                      "mode": "findDay"
 
42
                  }
 
43
                 ],
 
44
                 [ // Level 1 Questions
 
45
                  {
 
46
                      "question": qsTr("Select day 23"),
 
47
                      "answer": {"year": 2018, "month": 2, "day": 23}
 
48
                  },
 
49
                  {
 
50
                      "question": qsTr("Select day 1"),
 
51
                      "answer": {"year": 2018, "month": 2, "day": 1}
 
52
                  },
 
53
                  {
 
54
                      "question": qsTr("Select day 16"),
 
55
                      "answer": {"year": 2018, "month": 2, "day": 16}
 
56
                  },
 
57
                  {
 
58
                      "question": qsTr("Select day 28"),
 
59
                      "answer": {"year": 2018, "month": 2, "day": 28}
 
60
                  },
 
61
                  {
 
62
                      "question": qsTr("Select day 11"),
 
63
                      "answer": {"year": 2018, "month": 2, "day": 11}
 
64
                  },
 
65
                  {
 
66
                      "question": qsTr("Select day 20"),
 
67
                      "answer": {"year": 2018, "month": 2, "day": 20}
 
68
                  }
 
69
                 ]
 
70
 
 
71
                ],
 
72
 
 
73
                [ // Level 2
 
74
                 [ // Level 2 Configurations
 
75
                  {
 
76
                      "navigationBarVisible" : false,
 
77
                      "minimumDate": "2018-03-01",
 
78
                      "maximumDate": "2018-03-31",
 
79
                      "visibleMonth": 2,
 
80
                      "visibleYear": 2018,
 
81
                      "mode": "findDayOfWeek"
 
82
                  }
 
83
                 ],
 
84
                 [ // Level 2  Questions
 
85
                  {
 
86
                      "question": qsTr("What day of week is the 4th of given month?"),
 
87
                      "answer": {"dayOfWeek": 0}
 
88
                  },
 
89
                  {
 
90
                      "question": qsTr("What day of the week is the 12th of given month?"),
 
91
                      "answer": {"dayOfWeek": 1}
 
92
                  },
 
93
                  {
 
94
                      "question": qsTr("What day of the week is the 20th of given month?"),
 
95
                      "answer": {"dayOfWeek": 2}
 
96
                  },
 
97
                  {
 
98
                      "question": qsTr("What day of the week is the 28th of given month?"),
 
99
                      "answer": {"dayOfWeek": 3}
 
100
                  },
 
101
                  {
 
102
                      "question": qsTr("What day of the week is the 22nd of given month?"),
 
103
                      "answer": {"dayOfWeek": 4}
 
104
                  },
 
105
                  {
 
106
                      "question": qsTr("What day of the week is the 16th of given month?"),
 
107
                      "answer": {"dayOfWeek": 5}
 
108
                  },
 
109
                  {
 
110
                      "question": qsTr("What day of the week is the 10th of given month?"),
 
111
                      "answer": {"dayOfWeek": 6}
 
112
                  }
 
113
                 ]
 
114
                ],
 
115
 
 
116
                [ // Level 3
 
117
                 [ // Level 3 configurations
 
118
                  {
 
119
                      "navigationBarVisible": false,
 
120
                      "minimumDate": "2018-03-01",
 
121
                      "maximumDate": "2018-03-31",
 
122
                      "visibleMonth": 2,
 
123
                      "visibleYear": 2018,
 
124
                      "mode": "findDay"
 
125
                  }
 
126
                 ],
 
127
 
 
128
                 [ // Level 3 Questions
 
129
                  {
 
130
                      "question": qsTr("Select a Monday between days 1 and 7 of given month"),
 
131
                      "answer": {"year": 2018, "month": 2, "day": 5}
 
132
                  },
 
133
                  {
 
134
                      "question": qsTr("Select a Tuesday between days 8 and 16 of given month"),
 
135
                      "answer": {"year": 2018, "month": 2, "day": 13}
 
136
                  },
 
137
                  {
 
138
                      "question": qsTr("Select a Wednesday between days 15 and 22 of given month"),
 
139
                      "answer": {"year": 2018, "month": 2, "day": 21}
 
140
                  },
 
141
                  {
 
142
                      "question": qsTr("Select a Thursday between days 26 and 31 of given month"),
 
143
                      "answer": {"year": 2018, "month": 2, "day": 29}
 
144
                  },
 
145
                  {
 
146
                      "question": qsTr("Select a Friday between days 20 and 25 of given month"),
 
147
                      "answer": {"year": 2018, "month": 2, "day": 23}
 
148
                  },
 
149
                  {
 
150
                      "question": qsTr("Select a Saturday between days 13 and 23 of given month"),
 
151
                      "answer": {"year": 2018, "month": 2, "day": 17}
 
152
                  },
 
153
                  {
 
154
                      "question": qsTr("Select a Sunday between days 5 and 17 of given month"),
 
155
                      "answer": {"year": 2018, "month": 2, "day": 11}
 
156
                  }
 
157
                 ]
 
158
                ],
 
159
 
 
160
                [ // level 4
 
161
                 [ // Level 4 Configurations
 
162
                  {
 
163
                      "navigationBarVisible" : false,
 
164
                      "minimumDate": "2018-03-01",
 
165
                      "maximumDate": "2018-03-31",
 
166
                      "visibleMonth": 2,
 
167
                      "visibleYear": 2018,
 
168
                      "mode": "findDay"
 
169
                  }
 
170
                 ],
 
171
                 [ // Level 4 Questions
 
172
                  {
 
173
                      "question": qsTr("Select second day before the 15th of given month"),
 
174
                      "answer": {"year": 2018, "month": 2, "day": 13}
 
175
                  },
 
176
                  {
 
177
                      "question": qsTr("Select fourth Sunday of given month"),
 
178
                      "answer": {"year": 2018, "month": 2, "day": 25}
 
179
                  },
 
180
                  {
 
181
                      "question": qsTr("Select day one week after 13th of given month"),
 
182
                      "answer": {"year": 2018, "month": 2, "day": 20}
 
183
                  },
 
184
                  {
 
185
                      "question": qsTr("Select fifth Thursday of given month"),
 
186
                      "answer": {"year": 2018, "month": 2, "day": 29}
 
187
                  },
 
188
                  {
 
189
                      "question": qsTr("Select third day after 27th of given month"),
 
190
                      "answer": {"year": 2018, "month": 2, "day": 30}
 
191
                  }
 
192
                 ]
 
193
                ],
 
194
 
 
195
                [ // Level 5
 
196
                 [ // Level 5 Configurations
 
197
                  {
 
198
                      "navigationBarVisible" : true,
 
199
                      "minimumDate": "2018-01-01",
 
200
                      "maximumDate": "2018-12-31",
 
201
                      "visibleMonth": 1,
 
202
                      "visibleYear": 2018,
 
203
                      "mode": "findMonthOnly"
 
204
                  }
 
205
                 ],
 
206
                 [ // Level 5 Questions
 
207
                  {
 
208
                      "question": qsTr("Find the month starting a Thursday and having 28 days"),
 
209
                      "answer": {"month": [1]}
 
210
                  },
 
211
                  {
 
212
                      "question": qsTr("Find a month starting a Monday and having 31 days"),
 
213
                      "answer": {"month": [0, 9]}
 
214
                  },
 
215
                  {
 
216
                      "question": qsTr("Find the month between June and August"),
 
217
                      "answer": {"month": [6]}
 
218
                  },
 
219
                  {
 
220
                      "question": qsTr("Find a month starting a Saturday"),
 
221
                      "answer": {"month": [8, 11]}
 
222
                  },
 
223
                  {
 
224
                      "question": qsTr("Find a month having 30 days"),
 
225
                      "answer": {"month": [3, 5, 8, 10]}
 
226
                  }
 
227
                 ]
 
228
                ],
 
229
 
 
230
                [ // level 6
 
231
                 [ // Level 6 Configurations
 
232
                  {
 
233
                      "navigationBarVisible" : true,
 
234
                      "minimumDate": "2017-01-01",
 
235
                      "maximumDate": "2019-12-31",
 
236
                      "visibleMonth": 2,
 
237
                      "visibleYear": 2018,
 
238
                      "mode": "findYearMonthDay"
 
239
                  }
 
240
 
 
241
                 ],
 
242
                 [ // Level 6 Questions
 
243
                  {
 
244
                      "question": qsTr("Find the first Monday of January month of year 2019"),
 
245
                      "answer": {"year": 2019, "month": 0, "day": 7}
 
246
                  },
 
247
                  {
 
248
                      "question": qsTr("Find the second Wednesday of February month of year 2019"),
 
249
                      "answer": {"year": 2019, "month": 1, "day": 13}
 
250
                  },
 
251
                  {
 
252
                      "question": qsTr("Find the third Friday of March month of year 2019"),
 
253
                      "answer": {"year": 2019, "month": 2, "day": 15}
 
254
                  },
 
255
                  {
 
256
                      "question": qsTr("Find the fifth Sunday of April month of year 2018"),
 
257
                      "answer": {"year": 2018, "month": 3, "day": 29}
 
258
                  },
 
259
                  {
 
260
                      "question": qsTr("Find the fourth Tuesday of July month of year 2018"),
 
261
                      "answer": {"year": 2018, "month": 6, "day": 24}
 
262
                  },
 
263
                  {
 
264
                      "question": qsTr("Find the first Monday of August month of year 2018"),
 
265
                      "answer": {"year": 2018, "month": 7, "day": 6}
 
266
                  },
 
267
                  {
 
268
                      "question": qsTr("Find the third Thursday of September month of year 2017"),
 
269
                      "answer": {"year": 2017, "month": 8, "day": 21}
 
270
                  },
 
271
                  {
 
272
                      "question": qsTr("Find the fifth Sunday of October month of year 2017"),
 
273
                      "answer": {"year": 2017, "month": 9, "day": 29}
 
274
                  },
 
275
                  {
 
276
                      "question": qsTr("Find the second Friday of December month of year 2017"),
 
277
                      "answer": {"year": 2017, "month": 11, "day": 8}
 
278
                  }
 
279
                 ]
 
280
                ],
 
281
 
 
282
                [ // Level 7
 
283
                 [ // Level 7 Configurations
 
284
                  {
 
285
                      "navigationBarVisible" : true,
 
286
                      "minimumDate": "2017-01-01",
 
287
                      "maximumDate": "2019-12-31",
 
288
                      "visibleMonth": 1,
 
289
                      "visibleYear": 2018,
 
290
                      "mode": "findYearMonthDay"
 
291
                  }
 
292
                 ],
 
293
                 [ // Level 7 Questions
 
294
                  {
 
295
                      "question": qsTr("Human Rights Day is celebrated five days after December 5.<br> Find the date of Human Rights Day in 2017."),
 
296
                      "answer": {"year": 2017, "month": 11, "day": 10}
 
297
                  },
 
298
                  {
 
299
                      "question": qsTr("Braille Day is celebrated one day before January 5.<br> Find the date of Braille Day in 2018"),
 
300
                      "answer": {"year": 2018, "month": 0, "day": 4}
 
301
                  },
 
302
                  {
 
303
                      "question": qsTr("Mark's birthday is on November 4. In 2017 his party was exactly two weeks later.<br> Find the date of his party in 2017"),
 
304
                      "answer": {"year": 2017, "month": 10, "day": 18}
 
305
                  },
 
306
                  {
 
307
                      "question": qsTr("International Women's Day is celebrated two days before March 10.<br> Find the date of International Women's Day in 2018."),
 
308
                      "answer": {"year": 2018, "month": 2, "day": 8}
 
309
                  },
 
310
                  {
 
311
                      "question": qsTr("Sports competition was held on last Friday of September 2017.<br> Select the date of sports competition on the calendar."),
 
312
                      "answer": {"year": 2017, "month": 8, "day": 29}
 
313
                  }
 
314
                 ]
 
315
                ]
 
316
            ]
 
317
}