Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
edlynvillegas committed Jun 24, 2020
2 parents 1effdbc + d0b7d79 commit 5a65243
Show file tree
Hide file tree
Showing 2 changed files with 30 additions and 9 deletions.
25 changes: 17 additions & 8 deletions evo-calendar/js/evo-calendar.js
Original file line number Diff line number Diff line change
Expand Up @@ -54,28 +54,37 @@
daysShort: ["Sun", "Mon", "Tue", "Wed", "Thu", "Fri", "Sat"],
daysMin: ["Su", "Mo", "Tu", "We", "Th", "Fr", "Sa"],
months: ["January", "February", "March", "April", "May", "June", "July", "August", "September", "October", "November", "December"],
monthsShort: ["Jan", "Feb", "Mar", "Apr", "May", "Jun", "Jul", "Aug", "Sep", "Oct", "Nov", "Dec"]
monthsShort: ["Jan", "Feb", "Mar", "Apr", "May", "Jun", "Jul", "Aug", "Sep", "Oct", "Nov", "Dec"],
noEventForToday: "No event for today.. so take a rest! :)",
noEventForThisDay: "No event for this day.. so take a rest! :)"
},
es: {
days: ["Domingo", "Lunes", "Martes", "Miércoles", "Jueves", "Viernes", "Sábado"],
daysShort: ["Dom", "Lun", "Mar", "Mié", "Jue", "Vie", "Sáb"],
daysMin: ["Do", "Lu", "Ma", "Mi", "Ju", "Vi", "Sa"],
months: ["Enero", "Febrero", "Marzo", "Abril", "Mayo", "Junio", "Julio", "Agosto", "Septiembre", "Octubre", "Noviembre", "Diciembre"],
monthsShort: ["Ene", "Feb", "Mar", "Abr", "May", "Jun", "Jul", "Ago", "Sep", "Oct", "Nov", "Dic"]
monthsShort: ["Ene", "Feb", "Mar", "Abr", "May", "Jun", "Jul", "Ago", "Sep", "Oct", "Nov", "Dic"],
noEventForToday: "No hay evento para hoy.. ¡así que descanse! :)",
noEventForThisDay: "Ningún evento para este día.. ¡así que descanse! :)"
},
de: {
days: ["Sonntag", "Montag", "Dienstag", "Mittwoch", "Donnerstag", "Freitag", "Samstag"],
daysShort: ["So", "Mo", "Di", "Mi", "Do", "Fr", "Sa"],
daysMin: ["So", "Mo", "Di", "Mi", "Do", "Fr", "Sa"],
months: ["Januar", "Februar", "März", "April", "Mai", "Juni", "Juli", "August", "September", "Oktober", "November", "Dezember"],
monthsShort: ["Jan", "Feb", "Mär", "Apr", "Mai", "Jun", "Jul", "Aug", "Sep", "Okt", "Nov", "Dez"]
monthsShort: ["Jan", "Feb", "Mär", "Apr", "Mai", "Jun", "Jul", "Aug", "Sep", "Okt", "Nov", "Dez"],
noEventForToday: "Keine Veranstaltung für heute.. also ruhen Sie sich aus! :)",
noEventForThisDay: "Keine Veranstaltung für diesen Tag.. also ruhen Sie sich aus! :)"
},
pt: {
days: ["Domingo", "Segunda-Feira", "Terça-Feira", "Quarta-Feira", "Quinta-Feira", "Sexta-Feira", "Sábado"],
daysShort: ["Dom", "Seg", "Ter", "Qua", "Qui", "Sex", "Sáb"],
daysMin: ["Do", "2a", "3a", "4a", "5a", "6a", "Sa"],
months: ["Janeiro", "Fevereiro", "Março", "Abril", "Maio", "Junho", "Julho", "Agosto", "Setembro", "Outubro", "Novembro", "Dezembro"],
monthsShort: ["Jan", "Feb", "Mar", "Abr", "Mai", "Jun", "Jul", "Ago", "Set", "Out", "Nov", "Dez"]
monthsShort: ["Jan", "Feb", "Mar", "Abr", "Mai", "Jun", "Jul", "Ago", "Set", "Out", "Nov", "Dez"],
noEventForToday: "Nenhum evento para hoje.. então descanse! :)",
noEventForThisDay: "Nenhum evento para este dia.. então descanse! :)"

}
}
}
Expand Down Expand Up @@ -514,9 +523,9 @@
// IF: no event for the selected date
if(!hasEventToday) {
if (_.$active.date === _.$current.date) {
markup = '<p>No event for today.. so take a rest! :)</p>';
markup = `<p>${_.initials.dates[_.options.language].noEventForToday}</p>`;
} else {
markup = '<p>No event for this day.. so take a rest! :)</p>';
markup = `<p>${_.initials.dates[_.options.language].noEventForThisDay}</p>`;
}
}
eventListEl.append(markup)
Expand Down Expand Up @@ -547,9 +556,9 @@
if (eventListEl.find('[data-event-index]').length === 0) {
eventListEl.empty();
if (_.$active.date === _.$current.date) {
markup = '<p>No event for today.. so take a rest! :)</p>';
markup = `<p>${_.initials.dates[_.options.language].noEventForToday}</p>`;
} else {
markup = '<p>No event for this day.. so take a rest! :)</p>';
markup = `<p>${_.initials.dates[_.options.language].noEventForThisDay}</p>`;
}
eventListEl.append(markup)
}
Expand Down
Loading

0 comments on commit 5a65243

Please sign in to comment.