bootstrap-calendar
Version:
Bootstrap full view calendar
124 lines (115 loc) • 5.35 kB
JavaScript
// If you want to suggest a new language you can use this file as a template.
// To reduce the file size you should remove the comment lines (the ones that start with // )
if(!window.calendar_languages) {
window.calendar_languages = {};
}
// Here you define the language and Country code. Replace en-US with your own.
// First letters: the language code (lower case). See http://www.loc.gov/standards/iso639-2/php/code_list.php
// Last letters: the Country code (upper case). See http://www.iso.org/iso/home/standards/country_codes/country_names_and_code_elements.htm
window.calendar_languages['fi-FI'] = {
error_noview: 'Kalenteri: {0} näkymää ei löytynyt',
error_dateformat: 'Kalenteri: väärä päivämääräformaatti {0}. Oikea formaatti on "yyyy-mm-dd"',
error_loadurl: 'Kalenteri: Tapahtuman osoitetta ei ole asetettu',
error_where: 'Kalenteri: Väärä navigointisuunta {0}. Suunta voi olla vain "seuraava" tai "edellinen" or "tänään"',
error_timedevide: 'Kalenteri: Aikajaon tulee olla alle 60 ja kokonaisluku, kuten 10, 15, 30',
no_events_in_day: 'Ei tapahtumia.',
// {0} will be replaced with the year (example: 2013)
title_year: '{0}',
// {0} will be replaced with the month name (example: September)
// {1} will be replaced with the year (example: 2013)
title_month: '{0} {1}',
// {0} will be replaced with the week number (example: 37)
// {1} will be replaced with the year (example: 2013)
title_week: 'viikko {0}/{1}',
// {0} will be replaced with the weekday name (example: Thursday)
// {1} will be replaced with the day of the month (example: 12)
// {2} will be replaced with the month name (example: September)
// {3} will be replaced with the year (example: 2013)
title_day: '{0} {1} {2}, {3}',
week: 'Viikko',
all_day: 'Koko päivä',
time: 'Aika',
events: 'Tapahtumat',
before_time: 'Loppu ennen aikajanaa',
after_time: 'Alkaa aikajanan jälkeen',
m0: 'Tammikuu',
m1: 'Helmikuu',
m2: 'Maaliskuu',
m3: 'Huhtikuu',
m4: 'Toukokuu',
m5: 'Kesäkuu',
m6: 'Heinäkuu',
m7: 'Elokuu',
m8: 'Syyskuu',
m9: 'Lokakuu',
m10: 'Marraskuu',
m11: 'Joulukuu',
ms0: 'Tammi',
ms1: 'Helmi',
ms2: 'Maalis',
ms3: 'Huhti',
ms4: 'Touko',
ms5: 'Kesä',
ms6: 'Heinä',
ms7: 'Elo',
ms8: 'Syys',
ms9: 'Loka',
ms10: 'Marras',
ms11: 'Joulu',
d0: 'Sunnuntai',
d1: 'Maanantai',
d2: 'Tiistai',
d3: 'Keskiviikko',
d4: 'Torstai',
d5: 'Perjantai',
d6: 'Lauantai',
// Which is the first day of the week (2 for sunday, 1 for monday)
first_day: 1,
week_numbers_iso_8601: true,
// The list of the holidays.
// Each holiday has a date definition and a name (in your language)
// For instance:
// holidays: {
// 'date': 'name',
// 'date': 'name',
// ...
// 'date': 'name' //No ending comma for the last holiday
// }
// The format of the date may be one of the following:
// # For a holiday recurring every year in the same day: 'dd-mm' (dd is the day of the month, mm is the month). For example: '25-12'.
// # For a holiday that exists only in one specific year: 'dd-mm-yyyy' (dd is the day of the month, mm is the month, yyyy is the year). For example: '31-01-2013'
// # For Easter: use simply 'easter'
// # For holidays that are based on the Easter date: 'easter+offset in days'.
// Some examples:
// - 'easter-2' is Good Friday (2 days before Easter)
// - 'easter+1' is Easter Monday (1 day after Easter)
// - 'easter+39' is the Ascension Day
// - 'easter+49' is Pentecost
// # For holidays that are on a specific weekday after the beginning of a month: 'mm+n*w', where 'mm' is the month, 'n' is the ordinal position, 'w' is the weekday being 0: Sunday, 1: Monday, ..., 6: Saturnday
// For example:
// - Second (2) Monday (1) in October (10): '10+2*1'
// # For holidays that are on a specific weekday before the ending of a month: 'mm-n*w', where 'mm' is the month, 'n' is the ordinal position, 'w' is the weekday being 0: Sunday, 1: Monday, ..., 6: Saturnday
// For example:
// - Last (1) Saturnday (6) in Match (03): '03-1*6'
// - Last (1) Monday (1) in May (05): '05-1*1'
// # You can also specify a holiday that lasts more than one day. To do that use the format 'start>end' where 'start' and 'end' are specified as above.
// For example:
// - From 1 January to 6 January: '01-01>06-01'
// - Easter and the day after Easter: 'easter>easter+1'
// Limitations: currently the multi-day holydays can't cross an year. So, for example, you can't specify a range as '30-12>01-01'; as a workaround you can specify two distinct holidays (for instance '30-12>31-12' and '01-01').
holidays: {
// January 1, 6
'01-01': "Uudenvuodenpäivä",
'06-01': "Loppiainen",
'easter-2': "Pitkäperjantai",
'easter': "Pääsiäispäivä",
'easter+1': "2. pääsiäispäivä",
'easter+39': "Helatorstai",
'easter+49': "Helluntaipäivä",
'01-05': "Vappu",
'06-12': "Itsenäisyyspäivä",
'24-12': "Jouluaatto",
'25-12': "Joulupäivä",
'26-12': "Tapaninpäivä"
}
};