56
57
// TRANSLATORS: this is a time & Date formatting string,
57
58
//see http://qt-project.org/doc/qt-5/qml-qtqml-date.html#details
58
59
var dateFormat = i18n.tr("dd-MMM-yyyy")
60
// TRANSLATORS: This refers to no of occurences of an event.
59
61
limitHeader.value = parseInt(recurrenceRule[0].limit) ?
60
i18n.tr("After %1 Occurrences").arg(recurrenceRule[0].limit):
61
i18n.tr("After Date %1").arg(recurrenceRule[0].limit.toLocaleString(Qt.locale(),dateFormat));
62
i18n.tr("After %1 Occurrences", recurrenceRule[0].limit).arg(recurrenceRule[0].limit):
63
i18n.tr("After Date %1", recurrenceRule[0].limit.toLocaleString(Qt.locale(),dateFormat)).arg(recurrenceRule[0].limit.toLocaleString(Qt.locale(),dateFormat));
64
66
index = recurrenceRule[0].frequency ;
67
if(index === RecurrenceRule.Weekly ){
68
var sorted = recurrenceRule[0].daysOfWeek.sort();
69
var val = i18n.tr("Every ")
70
for(var j=0;j<sorted.length;++j){
71
val += Qt.locale().dayName(sorted[j],Locale.LongFormat) + " ,"
73
weekDaysHeader.value = val.slice(0,-1) // Trim last comma from the string
74
weekDaysHeader.visible = true;
67
78
limitHeader.visible = false
71
recurrentHeader.value = Defines.recurrenceLabel[index];
82
// This happens will be weekly in following cases:
83
// 1. Weekdays Monday to Friday
84
// 2. Monday,Wednesday,Friday
85
// 3. Tuesday & Thursday
87
recurrentHeader.value = Defines.recurrenceLabel[index === RecurrenceRule.Weekly ? 5 : index];
74
90
function updateContacts(event) {
378
395
//Guest Entries ends
380
property int recurranceAreaMaxWidth: Math.max( recurrentHeader.headerWidth, reminderHeader.headerWidth,limitHeader.headerWidth) //Dynamic Height
397
property int recurranceAreaMaxWidth: Math.max( recurrentHeader.headerWidth, reminderHeader.headerWidth,weekDaysHeader.headerWidth,limitHeader.headerWidth) //Dynamic Height
381
398
EventDetailsInfo{
382
399
id: recurrentHeader
383
400
xMargin: column.recurranceAreaMaxWidth
389
406
header: i18n.tr("Remind me")
391
408
EventDetailsInfo{
410
xMargin: column.recurranceAreaMaxWidth
411
header: i18n.tr("Repeats On");
393
416
xMargin: column.recurranceAreaMaxWidth
394
417
header: i18n.tr("Repetition Ends")