diff --git a/src/activities/calendar/calendar_dataset.js b/src/activities/calendar/calendar_dataset.js index 06c674b29..ac8192fd2 100644 --- a/src/activities/calendar/calendar_dataset.js +++ b/src/activities/calendar/calendar_dataset.js @@ -1,317 +1,317 @@ /* GCompris - calendar_dataset.js * * Copyright (C) 2017 Amit Sagtani * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 3 of the License, or * (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program; if not, see . */ // Contains the questions, answers and calendar configurations of every level. // Add more levels by inserting questions and answers below. // Days of weeks are indexed from 0 i.e (Sunday = 0, Monday = 1, Tuesday = 2, .... ..... .... , Saturday = 6) // Months of year are indexed from 0 i.e (January = 0, February = 1, March = 2, .... ..... ...., December = 11) //[ //MODES // findMonthOnly --> For questions based on finding month only. // findYearMonthDay --> For questions based on finding year, month and day. // findDayOfWeek --> For questions based on finding day of week only. // findDay --> For questions based on finding day of a given month and year. // ] function get() { return [ [ // Level 1 [ // Level 1 Configurations { "navigationBarVisible" : false, "minimumDate": "2018-03-01", "maximumDate": "2018-03-31", "visibleMonth": 2, "visibleYear": 2018, "mode": "findDay" } ], [ // Level 1 Questions { "question": qsTr("Select day 23"), "answer": {"year": 2018, "month": 2, "day": 23} }, { "question": qsTr("Select day 1"), "answer": {"year": 2018, "month": 2, "day": 1} }, { "question": qsTr("Select day 16"), "answer": {"year": 2018, "month": 2, "day": 16} }, { "question": qsTr("Select day 28"), "answer": {"year": 2018, "month": 2, "day": 28} }, { "question": qsTr("Select day 11"), "answer": {"year": 2018, "month": 2, "day": 11} }, { "question": qsTr("Select day 20"), "answer": {"year": 2018, "month": 2, "day": 20} } ] ], [ // Level 2 [ // Level 2 Configurations { "navigationBarVisible" : false, "minimumDate": "2018-03-01", "maximumDate": "2018-03-31", "visibleMonth": 2, "visibleYear": 2018, "mode": "findDayOfWeek" } ], [ // Level 2 Questions { "question": qsTr("What day of week is the 4th of given month?"), "answer": {"dayOfWeek": 0} }, { "question": qsTr("What day of the week is the 12th of given month?"), "answer": {"dayOfWeek": 1} }, { "question": qsTr("What day of the week is the 20th of given month?"), "answer": {"dayOfWeek": 2} }, { "question": qsTr("What day of the week is the 28th of given month?"), "answer": {"dayOfWeek": 3} }, { "question": qsTr("What day of the week is the 22nd of given month?"), "answer": {"dayOfWeek": 4} }, { "question": qsTr("What day of the week is the 16th of given month?"), "answer": {"dayOfWeek": 5} }, { "question": qsTr("What day of the week is the 10th of given month?"), "answer": {"dayOfWeek": 6} } ] ], [ // Level 3 [ // Level 3 configurations { "navigationBarVisible": false, "minimumDate": "2018-03-01", "maximumDate": "2018-03-31", "visibleMonth": 2, "visibleYear": 2018, "mode": "findDay" } ], [ // Level 3 Questions { "question": qsTr("Select a Monday between days 1 and 7 of given month"), "answer": {"year": 2018, "month": 2, "day": 5} }, { "question": qsTr("Select a Tuesday between days 8 and 16 of given month"), "answer": {"year": 2018, "month": 2, "day": 13} }, { "question": qsTr("Select a Wednesday between days 15 and 22 of given month"), "answer": {"year": 2018, "month": 2, "day": 21} }, { "question": qsTr("Select a Thursday between days 26 and 31 of given month"), "answer": {"year": 2018, "month": 2, "day": 29} }, { "question": qsTr("Select a Friday between days 20 and 25 of given month"), "answer": {"year": 2018, "month": 2, "day": 23} }, { "question": qsTr("Select a Saturday between days 13 and 23 of given month"), "answer": {"year": 2018, "month": 2, "day": 17} }, { "question": qsTr("Select a Sunday between days 5 and 17 of given month"), "answer": {"year": 2018, "month": 2, "day": 11} } ] ], [ // level 4 [ // Level 4 Configurations { "navigationBarVisible" : false, "minimumDate": "2018-03-01", "maximumDate": "2018-03-31", "visibleMonth": 2, "visibleYear": 2018, "mode": "findDay" } ], [ // Level 4 Questions { "question": qsTr("Select second day before the 15th of given month"), "answer": {"year": 2018, "month": 2, "day": 13} }, { "question": qsTr("Select fourth Sunday of given month"), "answer": {"year": 2018, "month": 2, "day": 25} }, { "question": qsTr("Select day one week after 13th of given month"), "answer": {"year": 2018, "month": 2, "day": 20} }, { "question": qsTr("Select fifth Thursday of given month"), "answer": {"year": 2018, "month": 2, "day": 29} }, { "question": qsTr("Select fourth day after 27th of given month"), "answer": {"year": 2018, "month": 2, "day": 31} } ] ], [ // Level 5 [ // Level 5 Configurations { "navigationBarVisible" : true, "minimumDate": "2018-01-01", "maximumDate": "2018-12-31", "visibleMonth": 1, "visibleYear": 2018, "mode": "findMonthOnly" } ], [ // Level 5 Questions { "question": qsTr("Find the month starting a Thursday and having 28 days"), "answer": {"month": [1]} }, { "question": qsTr("Find a month starting a Monday and having 31 days"), "answer": {"month": [0, 9]} }, { "question": qsTr("Find the month between June and August"), "answer": {"month": [6]} }, { "question": qsTr("Find a month starting a Saturday"), "answer": {"month": [8, 11]} }, { "question": qsTr("Find a month having 30 days"), "answer": {"month": [3, 5, 8, 10]} } ] ], [ // level 6 [ // Level 6 Configurations { "navigationBarVisible" : true, "minimumDate": "2017-01-01", "maximumDate": "2019-12-31", "visibleMonth": 2, "visibleYear": 2018, "mode": "findYearMonthDay" } ], [ // Level 6 Questions { "question": qsTr("Find the first Monday of January month of year 2019"), "answer": {"year": 2019, "month": 0, "day": 7} }, { "question": qsTr("Find the second Wednesday of February month of year 2019"), "answer": {"year": 2019, "month": 1, "day": 13} }, { "question": qsTr("Find the third Friday of March month of year 2019"), "answer": {"year": 2019, "month": 2, "day": 15} }, { "question": qsTr("Find the fifth Sunday of April month of year 2018"), "answer": {"year": 2018, "month": 3, "day": 29} }, { "question": qsTr("Find the fourth Tuesday of July month of year 2018"), "answer": {"year": 2018, "month": 6, "day": 24} }, { "question": qsTr("Find the first Monday of August month of year 2018"), "answer": {"year": 2018, "month": 7, "day": 6} }, { "question": qsTr("Find the third Thursday of September month of year 2017"), "answer": {"year": 2017, "month": 8, "day": 21} }, { "question": qsTr("Find the fifth Sunday of October month of year 2017"), "answer": {"year": 2017, "month": 9, "day": 29} }, { "question": qsTr("Find the second Friday of December month of year 2017"), "answer": {"year": 2017, "month": 11, "day": 8} } ] ], [ // Level 7 [ // Level 7 Configurations { "navigationBarVisible" : true, "minimumDate": "2017-01-01", "maximumDate": "2019-12-31", "visibleMonth": 1, "visibleYear": 2018, "mode": "findYearMonthDay" } ], [ // Level 7 Questions { - "question": qsTr("Columbus Day is celebrated on the second monday of October. Find the date of Columbus Day in 2018"), - "answer": {"year": 2018, "month": 9, "day": 8} + "question": qsTr("Human Rights Day is celebrated five days after December 5.
Find the date of Human Rights Day in 2017."), + "answer": {"year": 2017, "month": 11, "day": 10} }, { - "question": qsTr("Braille Day is celebrated one day before January 5. Find the date of Braille Day in 2018"), + "question": qsTr("Braille Day is celebrated one day before January 5.
Find the date of Braille Day in 2018"), "answer": {"year": 2018, "month": 0, "day": 4} }, { - "question": qsTr("Mark's birthday is on March 4. His party is exactly two weeks later. Find the date of his party in 2018"), - "answer": {"year": 2018, "month": 2, "day": 18} + "question": qsTr("Mark's birthday is on November 4. In 2017 his party was exactly two weeks later.
Find the date of his party in 2017"), + "answer": {"year": 2017, "month": 10, "day": 18} }, { - "question": qsTr("Mother's Day falls on the second Sunday in May. Find the date of Mother's Day in 2018"), - "answer": {"year": 2018, "month": 4, "day": 13} + "question": qsTr("International Women's Day is celebrated two days before March 10.
Find the date of International Women's Day in 2018."), + "answer": {"year": 2018, "month": 2, "day": 8} }, { - "question": qsTr("Sports competition will be held on last Friday of September 2018. Select the date of sports competition on the calendar"), - "answer": {"year": 2018, "month": 8, "day": 28} + "question": qsTr("Sports competition was held on last Friday of September 2017.
Select the date of sports competition on the calendar."), + "answer": {"year": 2017, "month": 8, "day": 29} } ] ] ] }