Add translation keys

pull/1/head
yflory 4 years ago
parent 33c9a2d395
commit 3d4f94bb13

@ -70,6 +70,11 @@ Messages.calendar_newEvent = "New event";
Messages.calendar_new = "New calendar"; Messages.calendar_new = "New calendar";
Messages.calendar_dateRange = "{0} - {1}"; Messages.calendar_dateRange = "{0} - {1}";
Messages.calendar_dateTimeRange = "{0} {1} - {2}"; Messages.calendar_dateTimeRange = "{0} {1} - {2}";
Messages.calendar_update = "Update";
Messages.calendar_title = "Title";
Messages.calendar_loc = "Location";
Messages.calendar_location = "Location: {0}";
Messages.calendar_allDay = "All day";
var onCalendarsUpdate = Util.mkEvent(); var onCalendarsUpdate = Util.mkEvent();
@ -220,11 +225,19 @@ Messages.calendar_dateTimeRange = "{0} {1} - {2}";
})()) { getTime = undefined; } })()) { getTime = undefined; }
var templates = { var templates = {
popupSave: function () { popupSave: function () { return Messages.settings_save; },
return Messages.settings_save; popupUpdate: function() { return Messages.calendar_update; },
}, popupEdit: function() { return Messages.poll_edit; },
popupDelete: function() { return Messages.kanban_delete; },
popupDetailLocation: function(schedule) { popupDetailLocation: function(schedule) {
return 'Location : ' + Util.fixHTML(schedule.location); // XXX // TODO detect url and create 'a' tag
return Messages._getKey('calendar_location', [Util.fixHTML(schedule.location)]);
},
popupIsAllDay: function() { return Messages.calendar_allDay; },
titlePlaceholder: function() { return Messages.calendar_title; },
locationPlaceholder: function() { return Messages.calendar_loc; },
alldayTitle: function() {
return '<span class="tui-full-calendar-left-content">'+Messages.calendar_allDay+'</span>';
}, },
timegridDisplayTime: getTime, timegridDisplayTime: getTime,
timegridDisplayPrimaryTime: getTime, timegridDisplayPrimaryTime: getTime,

Loading…
Cancel
Save