Changeset View
Changeset View
Standalone View
Standalone View
korganizer/plugins/thisdayinhistory/thisdayinhistory.cpp
Show All 39 Lines | |||||
40 | Element::List ThisDayInHistory::createDayElements(const QDate &date) | 40 | Element::List ThisDayInHistory::createDayElements(const QDate &date) | ||
41 | { | 41 | { | ||
42 | Element::List elements; | 42 | Element::List elements; | ||
43 | 43 | | |||
44 | StoredElement *element | 44 | StoredElement *element | ||
45 | = new StoredElement(QStringLiteral("Wikipedia link"), i18n("This day in history")); | 45 | = new StoredElement(QStringLiteral("Wikipedia link"), i18n("This day in history")); | ||
46 | 46 | | |||
47 | element->setUrl( | 47 | element->setUrl( | ||
48 | QUrl(i18nc("Localized Wikipedia website", "http://en.wikipedia.org/wiki/") | 48 | QUrl(i18nc("Localized Wikipedia website", "https://en.wikipedia.org/wiki/") | ||
49 | +date.toString(i18nc("Qt date format used by the localized Wikipedia", | 49 | +date.toString(i18nc("Qt date format used by the localized Wikipedia", | ||
50 | "MMMM_d")))); | 50 | "MMMM_d")))); | ||
51 | 51 | | |||
52 | elements.append(element); | 52 | elements.append(element); | ||
53 | 53 | | |||
54 | return elements; | 54 | return elements; | ||
55 | } | 55 | } | ||
56 | 56 | | |||
57 | Element::List ThisDayInHistory::createMonthElements(const QDate &date) | 57 | Element::List ThisDayInHistory::createMonthElements(const QDate &date) | ||
58 | { | 58 | { | ||
59 | Element::List elements; | 59 | Element::List elements; | ||
60 | 60 | | |||
61 | StoredElement *element | 61 | StoredElement *element | ||
62 | = new StoredElement(QStringLiteral("Wikipedia link"), i18n("This month in history")); | 62 | = new StoredElement(QStringLiteral("Wikipedia link"), i18n("This month in history")); | ||
63 | 63 | | |||
64 | element->setUrl( | 64 | element->setUrl( | ||
65 | QUrl(i18nc("Localized Wikipedia website", "http://en.wikipedia.org/wiki/") | 65 | QUrl(i18nc("Localized Wikipedia website", "https://en.wikipedia.org/wiki/") | ||
66 | +date.toString(i18nc("Qt date format used by the localized Wikipedia", | 66 | +date.toString(i18nc("Qt date format used by the localized Wikipedia", | ||
67 | "MMMM_yyyy")))); | 67 | "MMMM_yyyy")))); | ||
68 | 68 | | |||
69 | elements.append(element); | 69 | elements.append(element); | ||
70 | 70 | | |||
71 | return elements; | 71 | return elements; | ||
72 | } | 72 | } |