bootstrap3-datetimepicker-rails 3.0.0.2 → 3.0.2.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +9 -6
- data/lib/bootstrap3-datetimepicker-rails/version.rb +1 -1
- data/vendor/assets/javascripts/bootstrap-datetimepicker.js +476 -346
- data/vendor/assets/javascripts/bootstrap-datetimepicker.min.js +1 -105
- data/vendor/assets/stylesheets/bootstrap-datetimepicker.css +6 -5
- data/vendor/assets/stylesheets/bootstrap-datetimepicker.min.css +2 -1
- metadata +8 -69
- data/vendor/assets/javascripts/locales/bootstrap-datetimepicker.ar-ma.js +0 -56
- data/vendor/assets/javascripts/locales/bootstrap-datetimepicker.ar.js +0 -56
- data/vendor/assets/javascripts/locales/bootstrap-datetimepicker.bg.js +0 -86
- data/vendor/assets/javascripts/locales/bootstrap-datetimepicker.br.js +0 -107
- data/vendor/assets/javascripts/locales/bootstrap-datetimepicker.bs.js +0 -139
- data/vendor/assets/javascripts/locales/bootstrap-datetimepicker.by.js +0 -153
- data/vendor/assets/javascripts/locales/bootstrap-datetimepicker.ca.js +0 -66
- data/vendor/assets/javascripts/locales/bootstrap-datetimepicker.cs.js +0 -155
- data/vendor/assets/javascripts/locales/bootstrap-datetimepicker.cv.js +0 -59
- data/vendor/assets/javascripts/locales/bootstrap-datetimepicker.da.js +0 -56
- data/vendor/assets/javascripts/locales/bootstrap-datetimepicker.de.js +0 -71
- data/vendor/assets/javascripts/locales/bootstrap-datetimepicker.el.js +0 -79
- data/vendor/assets/javascripts/locales/bootstrap-datetimepicker.en-au.js +0 -62
- data/vendor/assets/javascripts/locales/bootstrap-datetimepicker.en-ca.js +0 -59
- data/vendor/assets/javascripts/locales/bootstrap-datetimepicker.en-gb.js +0 -63
- data/vendor/assets/javascripts/locales/bootstrap-datetimepicker.eo.js +0 -65
- data/vendor/assets/javascripts/locales/bootstrap-datetimepicker.es.js +0 -66
- data/vendor/assets/javascripts/locales/bootstrap-datetimepicker.et.js +0 -60
- data/vendor/assets/javascripts/locales/bootstrap-datetimepicker.eu.js +0 -60
- data/vendor/assets/javascripts/locales/bootstrap-datetimepicker.fa.js +0 -97
- data/vendor/assets/javascripts/locales/bootstrap-datetimepicker.fi.js +0 -103
- data/vendor/assets/javascripts/locales/bootstrap-datetimepicker.fr-ca.js +0 -54
- data/vendor/assets/javascripts/locales/bootstrap-datetimepicker.fr.js +0 -58
- data/vendor/assets/javascripts/locales/bootstrap-datetimepicker.gl.js +0 -71
- data/vendor/assets/javascripts/locales/bootstrap-datetimepicker.he.js +0 -77
- data/vendor/assets/javascripts/locales/bootstrap-datetimepicker.hi.js +0 -105
- data/vendor/assets/javascripts/locales/bootstrap-datetimepicker.hr.js +0 -140
- data/vendor/assets/javascripts/locales/bootstrap-datetimepicker.hu.js +0 -98
- data/vendor/assets/javascripts/locales/bootstrap-datetimepicker.id.js +0 -67
- data/vendor/assets/javascripts/locales/bootstrap-datetimepicker.is.js +0 -124
- data/vendor/assets/javascripts/locales/bootstrap-datetimepicker.it.js +0 -59
- data/vendor/assets/javascripts/locales/bootstrap-datetimepicker.ja.js +0 -58
- data/vendor/assets/javascripts/locales/bootstrap-datetimepicker.ka.js +0 -108
- data/vendor/assets/javascripts/locales/bootstrap-datetimepicker.ko.js +0 -56
- data/vendor/assets/javascripts/locales/bootstrap-datetimepicker.lt.js +0 -118
- data/vendor/assets/javascripts/locales/bootstrap-datetimepicker.lv.js +0 -77
- data/vendor/assets/javascripts/locales/bootstrap-datetimepicker.ml.js +0 -64
- data/vendor/assets/javascripts/locales/bootstrap-datetimepicker.mr.js +0 -104
- data/vendor/assets/javascripts/locales/bootstrap-datetimepicker.ms-my.js +0 -66
- data/vendor/assets/javascripts/locales/bootstrap-datetimepicker.nb.js +0 -57
- data/vendor/assets/javascripts/locales/bootstrap-datetimepicker.ne.js +0 -105
- data/vendor/assets/javascripts/locales/bootstrap-datetimepicker.nl.js +0 -67
- data/vendor/assets/javascripts/locales/bootstrap-datetimepicker.nn.js +0 -56
- data/vendor/assets/javascripts/locales/bootstrap-datetimepicker.pl.js +0 -98
- data/vendor/assets/javascripts/locales/bootstrap-datetimepicker.pt-BR.js +0 -56
- data/vendor/assets/javascripts/locales/bootstrap-datetimepicker.pt.js +0 -60
- data/vendor/assets/javascripts/locales/bootstrap-datetimepicker.ro.js +0 -56
- data/vendor/assets/javascripts/locales/bootstrap-datetimepicker.ru.js +0 -163
- data/vendor/assets/javascripts/locales/bootstrap-datetimepicker.sk.js +0 -156
- data/vendor/assets/javascripts/locales/bootstrap-datetimepicker.sl.js +0 -144
- data/vendor/assets/javascripts/locales/bootstrap-datetimepicker.sq.js +0 -57
- data/vendor/assets/javascripts/locales/bootstrap-datetimepicker.sv.js +0 -63
- data/vendor/assets/javascripts/locales/bootstrap-datetimepicker.th.js +0 -58
- data/vendor/assets/javascripts/locales/bootstrap-datetimepicker.tr.js +0 -93
- data/vendor/assets/javascripts/locales/bootstrap-datetimepicker.tzm-la.js +0 -55
- data/vendor/assets/javascripts/locales/bootstrap-datetimepicker.tzm.js +0 -55
- data/vendor/assets/javascripts/locales/bootstrap-datetimepicker.uk.js +0 -157
- data/vendor/assets/javascripts/locales/bootstrap-datetimepicker.uz.js +0 -55
- data/vendor/assets/javascripts/locales/bootstrap-datetimepicker.vn.js +0 -62
- data/vendor/assets/javascripts/locales/bootstrap-datetimepicker.zh-CN.js +0 -108
- data/vendor/assets/javascripts/locales/bootstrap-datetimepicker.zh-TW.js +0 -84
@@ -1,98 +0,0 @@
|
|
1
|
-
// moment.js language configuration
|
2
|
-
// language : polish (pl)
|
3
|
-
// author : Rafal Hirsz : https://github.com/evoL
|
4
|
-
|
5
|
-
(function (factory) {
|
6
|
-
if (typeof define === 'function' && define.amd) {
|
7
|
-
define(['moment'], factory); // AMD
|
8
|
-
} else if (typeof exports === 'object') {
|
9
|
-
module.exports = factory(require('../moment')); // Node
|
10
|
-
} else {
|
11
|
-
factory(window.moment); // Browser global
|
12
|
-
}
|
13
|
-
}(function (moment) {
|
14
|
-
var monthsNominative = "styczeń_luty_marzec_kwiecień_maj_czerwiec_lipiec_sierpień_wrzesień_październik_listopad_grudzień".split("_"),
|
15
|
-
monthsSubjective = "stycznia_lutego_marca_kwietnia_maja_czerwca_lipca_sierpnia_września_października_listopada_grudnia".split("_");
|
16
|
-
|
17
|
-
function plural(n) {
|
18
|
-
return (n % 10 < 5) && (n % 10 > 1) && (~~(n / 10) !== 1);
|
19
|
-
}
|
20
|
-
|
21
|
-
function translate(number, withoutSuffix, key) {
|
22
|
-
var result = number + " ";
|
23
|
-
switch (key) {
|
24
|
-
case 'm':
|
25
|
-
return withoutSuffix ? 'minuta' : 'minutę';
|
26
|
-
case 'mm':
|
27
|
-
return result + (plural(number) ? 'minuty' : 'minut');
|
28
|
-
case 'h':
|
29
|
-
return withoutSuffix ? 'godzina' : 'godzinę';
|
30
|
-
case 'hh':
|
31
|
-
return result + (plural(number) ? 'godziny' : 'godzin');
|
32
|
-
case 'MM':
|
33
|
-
return result + (plural(number) ? 'miesiące' : 'miesięcy');
|
34
|
-
case 'yy':
|
35
|
-
return result + (plural(number) ? 'lata' : 'lat');
|
36
|
-
}
|
37
|
-
}
|
38
|
-
|
39
|
-
return moment.lang('pl', {
|
40
|
-
months : function (momentToFormat, format) {
|
41
|
-
if (/D MMMM/.test(format)) {
|
42
|
-
return monthsSubjective[momentToFormat.month()];
|
43
|
-
} else {
|
44
|
-
return monthsNominative[momentToFormat.month()];
|
45
|
-
}
|
46
|
-
},
|
47
|
-
monthsShort : "sty_lut_mar_kwi_maj_cze_lip_sie_wrz_paź_lis_gru".split("_"),
|
48
|
-
weekdays : "niedziela_poniedziałek_wtorek_środa_czwartek_piątek_sobota".split("_"),
|
49
|
-
weekdaysShort : "nie_pon_wt_śr_czw_pt_sb".split("_"),
|
50
|
-
weekdaysMin : "N_Pn_Wt_Śr_Cz_Pt_So".split("_"),
|
51
|
-
longDateFormat : {
|
52
|
-
LT : "HH:mm",
|
53
|
-
L : "DD.MM.YYYY",
|
54
|
-
LL : "D MMMM YYYY",
|
55
|
-
LLL : "D MMMM YYYY LT",
|
56
|
-
LLLL : "dddd, D MMMM YYYY LT"
|
57
|
-
},
|
58
|
-
calendar : {
|
59
|
-
sameDay: '[Dziś o] LT',
|
60
|
-
nextDay: '[Jutro o] LT',
|
61
|
-
nextWeek: '[W] dddd [o] LT',
|
62
|
-
lastDay: '[Wczoraj o] LT',
|
63
|
-
lastWeek: function () {
|
64
|
-
switch (this.day()) {
|
65
|
-
case 0:
|
66
|
-
return '[W zeszłą niedzielę o] LT';
|
67
|
-
case 3:
|
68
|
-
return '[W zeszłą środę o] LT';
|
69
|
-
case 6:
|
70
|
-
return '[W zeszłą sobotę o] LT';
|
71
|
-
default:
|
72
|
-
return '[W zeszły] dddd [o] LT';
|
73
|
-
}
|
74
|
-
},
|
75
|
-
sameElse: 'L'
|
76
|
-
},
|
77
|
-
relativeTime : {
|
78
|
-
future : "za %s",
|
79
|
-
past : "%s temu",
|
80
|
-
s : "kilka sekund",
|
81
|
-
m : translate,
|
82
|
-
mm : translate,
|
83
|
-
h : translate,
|
84
|
-
hh : translate,
|
85
|
-
d : "1 dzień",
|
86
|
-
dd : '%d dni',
|
87
|
-
M : "miesiąc",
|
88
|
-
MM : translate,
|
89
|
-
y : "rok",
|
90
|
-
yy : translate
|
91
|
-
},
|
92
|
-
ordinal : '%d.',
|
93
|
-
week : {
|
94
|
-
dow : 1, // Monday is the first day of the week.
|
95
|
-
doy : 4 // The week that contains Jan 4th is the first week of the year.
|
96
|
-
}
|
97
|
-
});
|
98
|
-
}));
|
@@ -1,56 +0,0 @@
|
|
1
|
-
// moment.js language configuration
|
2
|
-
// language : brazilian portuguese (pt-br)
|
3
|
-
// author : Caio Ribeiro Pereira : https://github.com/caio-ribeiro-pereira
|
4
|
-
|
5
|
-
(function (factory) {
|
6
|
-
if (typeof define === 'function' && define.amd) {
|
7
|
-
define(['moment'], factory); // AMD
|
8
|
-
} else if (typeof exports === 'object') {
|
9
|
-
module.exports = factory(require('../moment')); // Node
|
10
|
-
} else {
|
11
|
-
factory(window.moment); // Browser global
|
12
|
-
}
|
13
|
-
}(function (moment) {
|
14
|
-
return moment.lang('pt-br', {
|
15
|
-
months : "Janeiro_Fevereiro_Março_Abril_Maio_Junho_Julho_Agosto_Setembro_Outubro_Novembro_Dezembro".split("_"),
|
16
|
-
monthsShort : "Jan_Fev_Mar_Abr_Mai_Jun_Jul_Ago_Set_Out_Nov_Dez".split("_"),
|
17
|
-
weekdays : "Domingo_Segunda-feira_Terça-feira_Quarta-feira_Quinta-feira_Sexta-feira_Sábado".split("_"),
|
18
|
-
weekdaysShort : "Dom_Seg_Ter_Qua_Qui_Sex_Sáb".split("_"),
|
19
|
-
weekdaysMin : "Dom_2ª_3ª_4ª_5ª_6ª_Sáb".split("_"),
|
20
|
-
longDateFormat : {
|
21
|
-
LT : "HH:mm",
|
22
|
-
L : "DD/MM/YYYY",
|
23
|
-
LL : "D [de] MMMM [de] YYYY",
|
24
|
-
LLL : "D [de] MMMM [de] YYYY LT",
|
25
|
-
LLLL : "dddd, D [de] MMMM [de] YYYY LT"
|
26
|
-
},
|
27
|
-
calendar : {
|
28
|
-
sameDay: '[Hoje às] LT',
|
29
|
-
nextDay: '[Amanhã às] LT',
|
30
|
-
nextWeek: 'dddd [às] LT',
|
31
|
-
lastDay: '[Ontem às] LT',
|
32
|
-
lastWeek: function () {
|
33
|
-
return (this.day() === 0 || this.day() === 6) ?
|
34
|
-
'[Último] dddd [às] LT' : // Saturday + Sunday
|
35
|
-
'[Última] dddd [às] LT'; // Monday - Friday
|
36
|
-
},
|
37
|
-
sameElse: 'L'
|
38
|
-
},
|
39
|
-
relativeTime : {
|
40
|
-
future : "em %s",
|
41
|
-
past : "%s atrás",
|
42
|
-
s : "segundos",
|
43
|
-
m : "um minuto",
|
44
|
-
mm : "%d minutos",
|
45
|
-
h : "uma hora",
|
46
|
-
hh : "%d horas",
|
47
|
-
d : "um dia",
|
48
|
-
dd : "%d dias",
|
49
|
-
M : "um mês",
|
50
|
-
MM : "%d meses",
|
51
|
-
y : "um ano",
|
52
|
-
yy : "%d anos"
|
53
|
-
},
|
54
|
-
ordinal : '%dº'
|
55
|
-
});
|
56
|
-
}));
|
@@ -1,60 +0,0 @@
|
|
1
|
-
// moment.js language configuration
|
2
|
-
// language : portuguese (pt)
|
3
|
-
// author : Jefferson : https://github.com/jalex79
|
4
|
-
|
5
|
-
(function (factory) {
|
6
|
-
if (typeof define === 'function' && define.amd) {
|
7
|
-
define(['moment'], factory); // AMD
|
8
|
-
} else if (typeof exports === 'object') {
|
9
|
-
module.exports = factory(require('../moment')); // Node
|
10
|
-
} else {
|
11
|
-
factory(window.moment); // Browser global
|
12
|
-
}
|
13
|
-
}(function (moment) {
|
14
|
-
return moment.lang('pt', {
|
15
|
-
months : "Janeiro_Fevereiro_Março_Abril_Maio_Junho_Julho_Agosto_Setembro_Outubro_Novembro_Dezembro".split("_"),
|
16
|
-
monthsShort : "Jan_Fev_Mar_Abr_Mai_Jun_Jul_Ago_Set_Out_Nov_Dez".split("_"),
|
17
|
-
weekdays : "Domingo_Segunda-feira_Terça-feira_Quarta-feira_Quinta-feira_Sexta-feira_Sábado".split("_"),
|
18
|
-
weekdaysShort : "Dom_Seg_Ter_Qua_Qui_Sex_Sáb".split("_"),
|
19
|
-
weekdaysMin : "Dom_2ª_3ª_4ª_5ª_6ª_Sáb".split("_"),
|
20
|
-
longDateFormat : {
|
21
|
-
LT : "HH:mm",
|
22
|
-
L : "DD/MM/YYYY",
|
23
|
-
LL : "D [de] MMMM [de] YYYY",
|
24
|
-
LLL : "D [de] MMMM [de] YYYY LT",
|
25
|
-
LLLL : "dddd, D [de] MMMM [de] YYYY LT"
|
26
|
-
},
|
27
|
-
calendar : {
|
28
|
-
sameDay: '[Hoje às] LT',
|
29
|
-
nextDay: '[Amanhã às] LT',
|
30
|
-
nextWeek: 'dddd [às] LT',
|
31
|
-
lastDay: '[Ontem às] LT',
|
32
|
-
lastWeek: function () {
|
33
|
-
return (this.day() === 0 || this.day() === 6) ?
|
34
|
-
'[Último] dddd [às] LT' : // Saturday + Sunday
|
35
|
-
'[Última] dddd [às] LT'; // Monday - Friday
|
36
|
-
},
|
37
|
-
sameElse: 'L'
|
38
|
-
},
|
39
|
-
relativeTime : {
|
40
|
-
future : "em %s",
|
41
|
-
past : "%s atrás",
|
42
|
-
s : "segundos",
|
43
|
-
m : "um minuto",
|
44
|
-
mm : "%d minutos",
|
45
|
-
h : "uma hora",
|
46
|
-
hh : "%d horas",
|
47
|
-
d : "um dia",
|
48
|
-
dd : "%d dias",
|
49
|
-
M : "um mês",
|
50
|
-
MM : "%d meses",
|
51
|
-
y : "um ano",
|
52
|
-
yy : "%d anos"
|
53
|
-
},
|
54
|
-
ordinal : '%dº',
|
55
|
-
week : {
|
56
|
-
dow : 1, // Monday is the first day of the week.
|
57
|
-
doy : 4 // The week that contains Jan 4th is the first week of the year.
|
58
|
-
}
|
59
|
-
});
|
60
|
-
}));
|
@@ -1,56 +0,0 @@
|
|
1
|
-
// moment.js language configuration
|
2
|
-
// language : romanian (ro)
|
3
|
-
// author : Vlad Gurdiga : https://github.com/gurdiga
|
4
|
-
// author : Valentin Agachi : https://github.com/avaly
|
5
|
-
|
6
|
-
(function (factory) {
|
7
|
-
if (typeof define === 'function' && define.amd) {
|
8
|
-
define(['moment'], factory); // AMD
|
9
|
-
} else if (typeof exports === 'object') {
|
10
|
-
module.exports = factory(require('../moment')); // Node
|
11
|
-
} else {
|
12
|
-
factory(window.moment); // Browser global
|
13
|
-
}
|
14
|
-
}(function (moment) {
|
15
|
-
return moment.lang('ro', {
|
16
|
-
months : "Ianuarie_Februarie_Martie_Aprilie_Mai_Iunie_Iulie_August_Septembrie_Octombrie_Noiembrie_Decembrie".split("_"),
|
17
|
-
monthsShort : "Ian_Feb_Mar_Apr_Mai_Iun_Iul_Aug_Sep_Oct_Noi_Dec".split("_"),
|
18
|
-
weekdays : "Duminică_Luni_Marţi_Miercuri_Joi_Vineri_Sâmbătă".split("_"),
|
19
|
-
weekdaysShort : "Dum_Lun_Mar_Mie_Joi_Vin_Sâm".split("_"),
|
20
|
-
weekdaysMin : "Du_Lu_Ma_Mi_Jo_Vi_Sâ".split("_"),
|
21
|
-
longDateFormat : {
|
22
|
-
LT : "H:mm",
|
23
|
-
L : "DD/MM/YYYY",
|
24
|
-
LL : "D MMMM YYYY",
|
25
|
-
LLL : "D MMMM YYYY H:mm",
|
26
|
-
LLLL : "dddd, D MMMM YYYY H:mm"
|
27
|
-
},
|
28
|
-
calendar : {
|
29
|
-
sameDay: "[azi la] LT",
|
30
|
-
nextDay: '[mâine la] LT',
|
31
|
-
nextWeek: 'dddd [la] LT',
|
32
|
-
lastDay: '[ieri la] LT',
|
33
|
-
lastWeek: '[fosta] dddd [la] LT',
|
34
|
-
sameElse: 'L'
|
35
|
-
},
|
36
|
-
relativeTime : {
|
37
|
-
future : "peste %s",
|
38
|
-
past : "%s în urmă",
|
39
|
-
s : "câteva secunde",
|
40
|
-
m : "un minut",
|
41
|
-
mm : "%d minute",
|
42
|
-
h : "o oră",
|
43
|
-
hh : "%d ore",
|
44
|
-
d : "o zi",
|
45
|
-
dd : "%d zile",
|
46
|
-
M : "o lună",
|
47
|
-
MM : "%d luni",
|
48
|
-
y : "un an",
|
49
|
-
yy : "%d ani"
|
50
|
-
},
|
51
|
-
week : {
|
52
|
-
dow : 1, // Monday is the first day of the week.
|
53
|
-
doy : 7 // The week that contains Jan 1st is the first week of the year.
|
54
|
-
}
|
55
|
-
});
|
56
|
-
}));
|
@@ -1,163 +0,0 @@
|
|
1
|
-
// moment.js language configuration
|
2
|
-
// language : russian (ru)
|
3
|
-
// author : Viktorminator : https://github.com/Viktorminator
|
4
|
-
// Author : Menelion Elensúle : https://github.com/Oire
|
5
|
-
|
6
|
-
(function (factory) {
|
7
|
-
if (typeof define === 'function' && define.amd) {
|
8
|
-
define(['moment'], factory); // AMD
|
9
|
-
} else if (typeof exports === 'object') {
|
10
|
-
module.exports = factory(require('../moment')); // Node
|
11
|
-
} else {
|
12
|
-
factory(window.moment); // Browser global
|
13
|
-
}
|
14
|
-
}(function (moment) {
|
15
|
-
function plural(word, num) {
|
16
|
-
var forms = word.split('_');
|
17
|
-
return num % 10 === 1 && num % 100 !== 11 ? forms[0] : (num % 10 >= 2 && num % 10 <= 4 && (num % 100 < 10 || num % 100 >= 20) ? forms[1] : forms[2]);
|
18
|
-
}
|
19
|
-
|
20
|
-
function relativeTimeWithPlural(number, withoutSuffix, key) {
|
21
|
-
var format = {
|
22
|
-
'mm': 'минута_минуты_минут',
|
23
|
-
'hh': 'час_часа_часов',
|
24
|
-
'dd': 'день_дня_дней',
|
25
|
-
'MM': 'месяц_месяца_месяцев',
|
26
|
-
'yy': 'год_года_лет'
|
27
|
-
};
|
28
|
-
if (key === 'm') {
|
29
|
-
return withoutSuffix ? 'минута' : 'минуту';
|
30
|
-
}
|
31
|
-
else {
|
32
|
-
return number + ' ' + plural(format[key], +number);
|
33
|
-
}
|
34
|
-
}
|
35
|
-
|
36
|
-
function monthsCaseReplace(m, format) {
|
37
|
-
var months = {
|
38
|
-
'nominative': 'январь_февраль_март_апрель_май_июнь_июль_август_сентябрь_октябрь_ноябрь_декабрь'.split('_'),
|
39
|
-
'accusative': 'января_февраля_марта_апреля_мая_июня_июля_августа_сентября_октября_ноября_декабря'.split('_')
|
40
|
-
},
|
41
|
-
|
42
|
-
nounCase = (/D[oD]? *MMMM?/).test(format) ?
|
43
|
-
'accusative' :
|
44
|
-
'nominative';
|
45
|
-
|
46
|
-
return months[nounCase][m.month()];
|
47
|
-
}
|
48
|
-
|
49
|
-
function monthsShortCaseReplace(m, format) {
|
50
|
-
var monthsShort = {
|
51
|
-
'nominative': 'янв_фев_мар_апр_май_июнь_июль_авг_сен_окт_ноя_дек'.split('_'),
|
52
|
-
'accusative': 'янв_фев_мар_апр_мая_июня_июля_авг_сен_окт_ноя_дек'.split('_')
|
53
|
-
},
|
54
|
-
|
55
|
-
nounCase = (/D[oD]? *MMMM?/).test(format) ?
|
56
|
-
'accusative' :
|
57
|
-
'nominative';
|
58
|
-
|
59
|
-
return monthsShort[nounCase][m.month()];
|
60
|
-
}
|
61
|
-
|
62
|
-
function weekdaysCaseReplace(m, format) {
|
63
|
-
var weekdays = {
|
64
|
-
'nominative': 'воскресенье_понедельник_вторник_среда_четверг_пятница_суббота'.split('_'),
|
65
|
-
'accusative': 'воскресенье_понедельник_вторник_среду_четверг_пятницу_субботу'.split('_')
|
66
|
-
},
|
67
|
-
|
68
|
-
nounCase = (/\[ ?[Вв] ?(?:прошлую|следующую)? ?\] ?dddd/).test(format) ?
|
69
|
-
'accusative' :
|
70
|
-
'nominative';
|
71
|
-
|
72
|
-
return weekdays[nounCase][m.day()];
|
73
|
-
}
|
74
|
-
|
75
|
-
return moment.lang('ru', {
|
76
|
-
months : monthsCaseReplace,
|
77
|
-
monthsShort : monthsShortCaseReplace,
|
78
|
-
weekdays : weekdaysCaseReplace,
|
79
|
-
weekdaysShort : "вс_пн_вт_ср_чт_пт_сб".split("_"),
|
80
|
-
weekdaysMin : "вс_пн_вт_ср_чт_пт_сб".split("_"),
|
81
|
-
monthsParse : [/^янв/i, /^фев/i, /^мар/i, /^апр/i, /^ма[й|я]/i, /^июн/i, /^июл/i, /^авг/i, /^сен/i, /^окт/i, /^ноя/i, /^дек/i],
|
82
|
-
longDateFormat : {
|
83
|
-
LT : "HH:mm",
|
84
|
-
L : "DD.MM.YYYY",
|
85
|
-
LL : "D MMMM YYYY г.",
|
86
|
-
LLL : "D MMMM YYYY г., LT",
|
87
|
-
LLLL : "dddd, D MMMM YYYY г., LT"
|
88
|
-
},
|
89
|
-
calendar : {
|
90
|
-
sameDay: '[Сегодня в] LT',
|
91
|
-
nextDay: '[Завтра в] LT',
|
92
|
-
lastDay: '[Вчера в] LT',
|
93
|
-
nextWeek: function () {
|
94
|
-
return this.day() === 2 ? '[Во] dddd [в] LT' : '[В] dddd [в] LT';
|
95
|
-
},
|
96
|
-
lastWeek: function () {
|
97
|
-
switch (this.day()) {
|
98
|
-
case 0:
|
99
|
-
return '[В прошлое] dddd [в] LT';
|
100
|
-
case 1:
|
101
|
-
case 2:
|
102
|
-
case 4:
|
103
|
-
return '[В прошлый] dddd [в] LT';
|
104
|
-
case 3:
|
105
|
-
case 5:
|
106
|
-
case 6:
|
107
|
-
return '[В прошлую] dddd [в] LT';
|
108
|
-
}
|
109
|
-
},
|
110
|
-
sameElse: 'L'
|
111
|
-
},
|
112
|
-
relativeTime : {
|
113
|
-
future : "через %s",
|
114
|
-
past : "%s назад",
|
115
|
-
s : "несколько секунд",
|
116
|
-
m : relativeTimeWithPlural,
|
117
|
-
mm : relativeTimeWithPlural,
|
118
|
-
h : "час",
|
119
|
-
hh : relativeTimeWithPlural,
|
120
|
-
d : "день",
|
121
|
-
dd : relativeTimeWithPlural,
|
122
|
-
M : "месяц",
|
123
|
-
MM : relativeTimeWithPlural,
|
124
|
-
y : "год",
|
125
|
-
yy : relativeTimeWithPlural
|
126
|
-
},
|
127
|
-
|
128
|
-
// M. E.: those two are virtually unused but a user might want to implement them for his/her website for some reason
|
129
|
-
|
130
|
-
meridiem : function (hour, minute, isLower) {
|
131
|
-
if (hour < 4) {
|
132
|
-
return "ночи";
|
133
|
-
} else if (hour < 12) {
|
134
|
-
return "утра";
|
135
|
-
} else if (hour < 17) {
|
136
|
-
return "дня";
|
137
|
-
} else {
|
138
|
-
return "вечера";
|
139
|
-
}
|
140
|
-
},
|
141
|
-
|
142
|
-
ordinal: function (number, period) {
|
143
|
-
switch (period) {
|
144
|
-
case 'M':
|
145
|
-
case 'd':
|
146
|
-
case 'DDD':
|
147
|
-
return number + '-й';
|
148
|
-
case 'D':
|
149
|
-
return number + '-го';
|
150
|
-
case 'w':
|
151
|
-
case 'W':
|
152
|
-
return number + '-я';
|
153
|
-
default:
|
154
|
-
return number;
|
155
|
-
}
|
156
|
-
},
|
157
|
-
|
158
|
-
week : {
|
159
|
-
dow : 1, // Monday is the first day of the week.
|
160
|
-
doy : 7 // The week that contains Jan 1st is the first week of the year.
|
161
|
-
}
|
162
|
-
});
|
163
|
-
}));
|
@@ -1,156 +0,0 @@
|
|
1
|
-
// moment.js language configuration
|
2
|
-
// language : slovak (sk)
|
3
|
-
// author : Martin Minka : https://github.com/k2s
|
4
|
-
// based on work of petrbela : https://github.com/petrbela
|
5
|
-
|
6
|
-
(function (factory) {
|
7
|
-
if (typeof define === 'function' && define.amd) {
|
8
|
-
define(['moment'], factory); // AMD
|
9
|
-
} else if (typeof exports === 'object') {
|
10
|
-
module.exports = factory(require('../moment')); // Node
|
11
|
-
} else {
|
12
|
-
factory(window.moment); // Browser global
|
13
|
-
}
|
14
|
-
}(function (moment) {
|
15
|
-
var months = "január_február_marec_apríl_máj_jún_júl_august_september_október_november_december".split("_"),
|
16
|
-
monthsShort = "jan_feb_mar_apr_máj_jún_júl_aug_sep_okt_nov_dec".split("_");
|
17
|
-
|
18
|
-
function plural(n) {
|
19
|
-
return (n > 1) && (n < 5);
|
20
|
-
}
|
21
|
-
|
22
|
-
function translate(number, withoutSuffix, key, isFuture) {
|
23
|
-
var result = number + " ";
|
24
|
-
switch (key) {
|
25
|
-
case 's': // a few seconds / in a few seconds / a few seconds ago
|
26
|
-
return (withoutSuffix || isFuture) ? 'pár sekúnd' : 'pár sekundami';
|
27
|
-
case 'm': // a minute / in a minute / a minute ago
|
28
|
-
return withoutSuffix ? 'minúta' : (isFuture ? 'minútu' : 'minútou');
|
29
|
-
case 'mm': // 9 minutes / in 9 minutes / 9 minutes ago
|
30
|
-
if (withoutSuffix || isFuture) {
|
31
|
-
return result + (plural(number) ? 'minúty' : 'minút');
|
32
|
-
} else {
|
33
|
-
return result + 'minútami';
|
34
|
-
}
|
35
|
-
break;
|
36
|
-
case 'h': // an hour / in an hour / an hour ago
|
37
|
-
return withoutSuffix ? 'hodina' : (isFuture ? 'hodinu' : 'hodinou');
|
38
|
-
case 'hh': // 9 hours / in 9 hours / 9 hours ago
|
39
|
-
if (withoutSuffix || isFuture) {
|
40
|
-
return result + (plural(number) ? 'hodiny' : 'hodín');
|
41
|
-
} else {
|
42
|
-
return result + 'hodinami';
|
43
|
-
}
|
44
|
-
break;
|
45
|
-
case 'd': // a day / in a day / a day ago
|
46
|
-
return (withoutSuffix || isFuture) ? 'deň' : 'dňom';
|
47
|
-
case 'dd': // 9 days / in 9 days / 9 days ago
|
48
|
-
if (withoutSuffix || isFuture) {
|
49
|
-
return result + (plural(number) ? 'dni' : 'dní');
|
50
|
-
} else {
|
51
|
-
return result + 'dňami';
|
52
|
-
}
|
53
|
-
break;
|
54
|
-
case 'M': // a month / in a month / a month ago
|
55
|
-
return (withoutSuffix || isFuture) ? 'mesiac' : 'mesiacom';
|
56
|
-
case 'MM': // 9 months / in 9 months / 9 months ago
|
57
|
-
if (withoutSuffix || isFuture) {
|
58
|
-
return result + (plural(number) ? 'mesiace' : 'mesiacov');
|
59
|
-
} else {
|
60
|
-
return result + 'mesiacmi';
|
61
|
-
}
|
62
|
-
break;
|
63
|
-
case 'y': // a year / in a year / a year ago
|
64
|
-
return (withoutSuffix || isFuture) ? 'rok' : 'rokom';
|
65
|
-
case 'yy': // 9 years / in 9 years / 9 years ago
|
66
|
-
if (withoutSuffix || isFuture) {
|
67
|
-
return result + (plural(number) ? 'roky' : 'rokov');
|
68
|
-
} else {
|
69
|
-
return result + 'rokmi';
|
70
|
-
}
|
71
|
-
break;
|
72
|
-
}
|
73
|
-
}
|
74
|
-
|
75
|
-
return moment.lang('sk', {
|
76
|
-
months : months,
|
77
|
-
monthsShort : monthsShort,
|
78
|
-
monthsParse : (function (months, monthsShort) {
|
79
|
-
var i, _monthsParse = [];
|
80
|
-
for (i = 0; i < 12; i++) {
|
81
|
-
// use custom parser to solve problem with July (červenec)
|
82
|
-
_monthsParse[i] = new RegExp('^' + months[i] + '$|^' + monthsShort[i] + '$', 'i');
|
83
|
-
}
|
84
|
-
return _monthsParse;
|
85
|
-
}(months, monthsShort)),
|
86
|
-
weekdays : "nedeľa_pondelok_utorok_streda_štvrtok_piatok_sobota".split("_"),
|
87
|
-
weekdaysShort : "ne_po_ut_st_št_pi_so".split("_"),
|
88
|
-
weekdaysMin : "ne_po_ut_st_št_pi_so".split("_"),
|
89
|
-
longDateFormat : {
|
90
|
-
LT: "H:mm",
|
91
|
-
L : "DD.MM.YYYY",
|
92
|
-
LL : "D. MMMM YYYY",
|
93
|
-
LLL : "D. MMMM YYYY LT",
|
94
|
-
LLLL : "dddd D. MMMM YYYY LT"
|
95
|
-
},
|
96
|
-
calendar : {
|
97
|
-
sameDay: "[dnes o] LT",
|
98
|
-
nextDay: '[zajtra o] LT',
|
99
|
-
nextWeek: function () {
|
100
|
-
switch (this.day()) {
|
101
|
-
case 0:
|
102
|
-
return '[v nedeľu o] LT';
|
103
|
-
case 1:
|
104
|
-
case 2:
|
105
|
-
return '[v] dddd [o] LT';
|
106
|
-
case 3:
|
107
|
-
return '[v stredu o] LT';
|
108
|
-
case 4:
|
109
|
-
return '[vo štvrtok o] LT';
|
110
|
-
case 5:
|
111
|
-
return '[v piatok o] LT';
|
112
|
-
case 6:
|
113
|
-
return '[v sobotu o] LT';
|
114
|
-
}
|
115
|
-
},
|
116
|
-
lastDay: '[včera o] LT',
|
117
|
-
lastWeek: function () {
|
118
|
-
switch (this.day()) {
|
119
|
-
case 0:
|
120
|
-
return '[minulú nedeľu o] LT';
|
121
|
-
case 1:
|
122
|
-
case 2:
|
123
|
-
return '[minulý] dddd [o] LT';
|
124
|
-
case 3:
|
125
|
-
return '[minulú stredu o] LT';
|
126
|
-
case 4:
|
127
|
-
case 5:
|
128
|
-
return '[minulý] dddd [o] LT';
|
129
|
-
case 6:
|
130
|
-
return '[minulú sobotu o] LT';
|
131
|
-
}
|
132
|
-
},
|
133
|
-
sameElse: "L"
|
134
|
-
},
|
135
|
-
relativeTime : {
|
136
|
-
future : "za %s",
|
137
|
-
past : "pred %s",
|
138
|
-
s : translate,
|
139
|
-
m : translate,
|
140
|
-
mm : translate,
|
141
|
-
h : translate,
|
142
|
-
hh : translate,
|
143
|
-
d : translate,
|
144
|
-
dd : translate,
|
145
|
-
M : translate,
|
146
|
-
MM : translate,
|
147
|
-
y : translate,
|
148
|
-
yy : translate
|
149
|
-
},
|
150
|
-
ordinal : '%d.',
|
151
|
-
week : {
|
152
|
-
dow : 1, // Monday is the first day of the week.
|
153
|
-
doy : 4 // The week that contains Jan 4th is the first week of the year.
|
154
|
-
}
|
155
|
-
});
|
156
|
-
}));
|