2
* Copyright (C) 2014 Canonical Ltd
4
* This file is part of Ubuntu Calendar App
6
* Ubuntu Calendar App is free software: you can redistribute it and/or modify
7
* it under the terms of the GNU General Public License version 3 as
8
* published by the Free Software Foundation.
10
* Ubuntu Calendar App 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.
15
* You should have received a copy of the GNU General Public License
16
* along with this program. If not, see <http://www.gnu.org/licenses/>.
23
Component.onCompleted: initialise()
25
function initialise() {
26
reminderModel.append({ "label": i18n.tr("No Reminder"), "value": -1 })
27
// TRANSLATORS: this refers to when a reminder should be shown as a notification
28
// in the indicators. "On Event" means that it will be shown right at the time
29
// the event starts, not any time before
30
reminderModel.append({ "label": i18n.tr("On Event"), "value": 0 })
31
reminderModel.append({ "label": i18n.tr("5 minutes"), "value": 300 })
32
reminderModel.append({ "label": i18n.tr("15 minutes"), "value": 900 })
33
reminderModel.append({ "label": i18n.tr("30 minutes"), "value": 1800 })
34
reminderModel.append({ "label": i18n.tr("1 hour"), "value": 3600 })
35
reminderModel.append({ "label": i18n.tr("2 hours"), "value": 7200 })
36
reminderModel.append({ "label": i18n.tr("1 day"), "value": 86400 })
37
reminderModel.append({ "label": i18n.tr("2 days"), "value": 172800 })
38
reminderModel.append({ "label": i18n.tr("1 week"), "value": 604800 })
39
reminderModel.append({ "label": i18n.tr("2 weeks"), "value": 1209600 })