momentjs-rails 1.7.2 → 2.0.0.1
Sign up to get free protection for your applications and to get access to all the features.
- data/README.md +1 -1
- data/{changelog.md → news.md} +30 -12
- data/test/dummy/Rakefile +7 -0
- data/test/dummy/config.ru +4 -0
- data/test/dummy/config/application.rb +65 -0
- data/test/dummy/config/boot.rb +10 -0
- data/test/dummy/config/environment.rb +5 -0
- data/test/dummy/config/environments/development.rb +31 -0
- data/test/dummy/config/environments/production.rb +64 -0
- data/test/dummy/config/environments/test.rb +35 -0
- data/test/dummy/config/initializers/backtrace_silencers.rb +7 -0
- data/test/dummy/config/initializers/inflections.rb +15 -0
- data/test/dummy/config/initializers/mime_types.rb +5 -0
- data/test/dummy/config/initializers/secret_token.rb +7 -0
- data/test/dummy/config/initializers/session_store.rb +8 -0
- data/test/dummy/config/initializers/wrap_parameters.rb +10 -0
- data/test/dummy/config/locales/en.yml +5 -0
- data/test/dummy/config/routes.rb +2 -0
- data/test/dummy/log/test.log +76 -0
- data/test/dummy/tmp/cache/assets/D1C/680/sprockets%2F16ed4d5afdb2919596e6f8790e2116c2 +0 -0
- data/test/dummy/tmp/cache/assets/D35/CA0/sprockets%2F493e64bce2d302801dc01cf7cd096a58 +0 -0
- data/test/dummy/tmp/cache/assets/D3F/5F0/sprockets%2F4a6c53eae7c6e41a69a191578bbb6417 +0 -0
- data/test/dummy/tmp/cache/assets/D58/BD0/sprockets%2F4de9ddc9b725c715a54c98697b2528fe +0 -0
- data/test/dummy/tmp/cache/assets/D75/510/sprockets%2Fe690787ac522f47a6be024bfcc1767ee +0 -0
- data/test/dummy/tmp/cache/assets/E10/250/sprockets%2Fe4badb9ddfda484eb9671bf88567be61 +0 -0
- data/test/integration/navigation_test.rb +14 -0
- data/test/momentjs-rails_test.rb +7 -0
- data/test/test_helper.rb +15 -0
- data/vendor/assets/javascripts/moment.js +542 -355
- data/vendor/assets/javascripts/moment/ar-ma.js +46 -0
- data/vendor/assets/javascripts/moment/ar.js +45 -0
- data/vendor/assets/javascripts/moment/bg.js +71 -61
- data/vendor/assets/javascripts/moment/ca.js +51 -59
- data/vendor/assets/javascripts/moment/cs.js +145 -0
- data/vendor/assets/javascripts/moment/cv.js +45 -53
- data/vendor/assets/javascripts/moment/da.js +41 -49
- data/vendor/assets/javascripts/moment/de.js +41 -49
- data/vendor/assets/javascripts/moment/en-ca.js +44 -53
- data/vendor/assets/javascripts/moment/en-gb.js +48 -53
- data/vendor/assets/javascripts/moment/eo.js +55 -0
- data/vendor/assets/javascripts/moment/es.js +51 -59
- data/vendor/assets/javascripts/moment/et.js +44 -61
- data/vendor/assets/javascripts/moment/eu.js +46 -50
- data/vendor/assets/javascripts/moment/fi.js +84 -89
- data/vendor/assets/javascripts/moment/fr-ca.js +39 -49
- data/vendor/assets/javascripts/moment/fr.js +43 -49
- data/vendor/assets/javascripts/moment/gl.js +51 -59
- data/vendor/assets/javascripts/moment/he.js +46 -0
- data/vendor/assets/javascripts/moment/hu.js +77 -98
- data/vendor/assets/javascripts/moment/id.js +57 -0
- data/vendor/assets/javascripts/moment/is.js +103 -121
- data/vendor/assets/javascripts/moment/it.js +41 -49
- data/vendor/assets/javascripts/moment/ja.js +43 -56
- data/vendor/assets/javascripts/moment/ko.js +42 -54
- data/vendor/assets/javascripts/moment/lv.js +67 -0
- data/vendor/assets/javascripts/moment/nb.js +41 -49
- data/vendor/assets/javascripts/moment/ne.js +95 -0
- data/vendor/assets/javascripts/moment/nl.js +52 -57
- data/vendor/assets/javascripts/moment/pl.js +73 -70
- data/vendor/assets/javascripts/moment/pt-br.js +42 -54
- data/vendor/assets/javascripts/moment/pt.js +45 -53
- data/vendor/assets/javascripts/moment/ro.js +40 -49
- data/vendor/assets/javascripts/moment/ru.js +105 -114
- data/vendor/assets/javascripts/moment/sl.js +134 -0
- data/vendor/assets/javascripts/moment/sv.js +48 -53
- data/vendor/assets/javascripts/moment/th.js +48 -0
- data/vendor/assets/javascripts/moment/tr.js +69 -75
- data/vendor/assets/javascripts/moment/tzm-la.js +45 -0
- data/vendor/assets/javascripts/moment/tzm.js +45 -0
- data/vendor/assets/javascripts/moment/uk.js +122 -0
- data/vendor/assets/javascripts/moment/zh-cn.js +53 -62
- data/vendor/assets/javascripts/moment/zh-tw.js +53 -62
- metadata +121 -54
- data/vendor/assets/javascripts/moment/jp.js +0 -64
- data/vendor/assets/javascripts/moment/kr.js +0 -61
@@ -1,54 +1,44 @@
|
|
1
1
|
// moment.js language configuration
|
2
2
|
// language : canadian french (fr-ca)
|
3
3
|
// author : Jonathan Abourbih : https://github.com/jonbca
|
4
|
-
(function () {
|
5
|
-
var lang = {
|
6
|
-
months : "janvier_février_mars_avril_mai_juin_juillet_août_septembre_octobre_novembre_décembre".split("_"),
|
7
|
-
monthsShort : "janv._févr._mars_avr._mai_juin_juil._août_sept._oct._nov._déc.".split("_"),
|
8
|
-
weekdays : "dimanche_lundi_mardi_mercredi_jeudi_vendredi_samedi".split("_"),
|
9
|
-
weekdaysShort : "dim._lun._mar._mer._jeu._ven._sam.".split("_"),
|
10
|
-
weekdaysMin : "Di_Lu_Ma_Me_Je_Ve_Sa".split("_"),
|
11
|
-
longDateFormat : {
|
12
|
-
LT : "HH:mm",
|
13
|
-
L : "YYYY-MM-DD",
|
14
|
-
LL : "D MMMM YYYY",
|
15
|
-
LLL : "D MMMM YYYY LT",
|
16
|
-
LLLL : "dddd D MMMM YYYY LT"
|
17
|
-
},
|
18
|
-
calendar : {
|
19
|
-
sameDay: "[Aujourd'hui à] LT",
|
20
|
-
nextDay: '[Demain à] LT',
|
21
|
-
nextWeek: 'dddd [à] LT',
|
22
|
-
lastDay: '[Hier à] LT',
|
23
|
-
lastWeek: 'dddd [dernier à] LT',
|
24
|
-
sameElse: 'L'
|
25
|
-
},
|
26
|
-
relativeTime : {
|
27
|
-
future : "dans %s",
|
28
|
-
past : "il y a %s",
|
29
|
-
s : "quelques secondes",
|
30
|
-
m : "une minute",
|
31
|
-
mm : "%d minutes",
|
32
|
-
h : "une heure",
|
33
|
-
hh : "%d heures",
|
34
|
-
d : "un jour",
|
35
|
-
dd : "%d jours",
|
36
|
-
M : "un mois",
|
37
|
-
MM : "%d mois",
|
38
|
-
y : "une année",
|
39
|
-
yy : "%d années"
|
40
|
-
},
|
41
|
-
ordinal : function (number) {
|
42
|
-
return number === 1 ? 'er' : 'ème';
|
43
|
-
}
|
44
|
-
};
|
45
4
|
|
46
|
-
|
47
|
-
|
48
|
-
|
5
|
+
require('../moment').lang('fr-ca', {
|
6
|
+
months : "janvier_février_mars_avril_mai_juin_juillet_août_septembre_octobre_novembre_décembre".split("_"),
|
7
|
+
monthsShort : "janv._févr._mars_avr._mai_juin_juil._août_sept._oct._nov._déc.".split("_"),
|
8
|
+
weekdays : "dimanche_lundi_mardi_mercredi_jeudi_vendredi_samedi".split("_"),
|
9
|
+
weekdaysShort : "dim._lun._mar._mer._jeu._ven._sam.".split("_"),
|
10
|
+
weekdaysMin : "Di_Lu_Ma_Me_Je_Ve_Sa".split("_"),
|
11
|
+
longDateFormat : {
|
12
|
+
LT : "HH:mm",
|
13
|
+
L : "YYYY-MM-DD",
|
14
|
+
LL : "D MMMM YYYY",
|
15
|
+
LLL : "D MMMM YYYY LT",
|
16
|
+
LLLL : "dddd D MMMM YYYY LT"
|
17
|
+
},
|
18
|
+
calendar : {
|
19
|
+
sameDay: "[Aujourd'hui à] LT",
|
20
|
+
nextDay: '[Demain à] LT',
|
21
|
+
nextWeek: 'dddd [à] LT',
|
22
|
+
lastDay: '[Hier à] LT',
|
23
|
+
lastWeek: 'dddd [dernier à] LT',
|
24
|
+
sameElse: 'L'
|
25
|
+
},
|
26
|
+
relativeTime : {
|
27
|
+
future : "dans %s",
|
28
|
+
past : "il y a %s",
|
29
|
+
s : "quelques secondes",
|
30
|
+
m : "une minute",
|
31
|
+
mm : "%d minutes",
|
32
|
+
h : "une heure",
|
33
|
+
hh : "%d heures",
|
34
|
+
d : "un jour",
|
35
|
+
dd : "%d jours",
|
36
|
+
M : "un mois",
|
37
|
+
MM : "%d mois",
|
38
|
+
y : "un an",
|
39
|
+
yy : "%d ans"
|
40
|
+
},
|
41
|
+
ordinal : function (number) {
|
42
|
+
return number + (number === 1 ? 'er' : 'ème');
|
49
43
|
}
|
50
|
-
|
51
|
-
if (typeof window !== 'undefined' && this.moment && this.moment.lang) {
|
52
|
-
this.moment.lang('fr-ca', lang);
|
53
|
-
}
|
54
|
-
}());
|
44
|
+
});
|
@@ -1,54 +1,48 @@
|
|
1
1
|
// moment.js language configuration
|
2
2
|
// language : french (fr)
|
3
3
|
// author : John Fischer : https://github.com/jfroffice
|
4
|
-
(function () {
|
5
|
-
var lang = {
|
6
|
-
months : "janvier_février_mars_avril_mai_juin_juillet_août_septembre_octobre_novembre_décembre".split("_"),
|
7
|
-
monthsShort : "janv._févr._mars_avr._mai_juin_juil._août_sept._oct._nov._déc.".split("_"),
|
8
|
-
weekdays : "dimanche_lundi_mardi_mercredi_jeudi_vendredi_samedi".split("_"),
|
9
|
-
weekdaysShort : "dim._lun._mar._mer._jeu._ven._sam.".split("_"),
|
10
|
-
weekdaysMin : "Di_Lu_Ma_Me_Je_Ve_Sa".split("_"),
|
11
|
-
longDateFormat : {
|
12
|
-
LT : "HH:mm",
|
13
|
-
L : "DD/MM/YYYY",
|
14
|
-
LL : "D MMMM YYYY",
|
15
|
-
LLL : "D MMMM YYYY LT",
|
16
|
-
LLLL : "dddd D MMMM YYYY LT"
|
17
|
-
},
|
18
|
-
calendar : {
|
19
|
-
sameDay: "[Aujourd'hui à] LT",
|
20
|
-
nextDay: '[Demain à] LT',
|
21
|
-
nextWeek: 'dddd [à] LT',
|
22
|
-
lastDay: '[Hier à] LT',
|
23
|
-
lastWeek: 'dddd [dernier à] LT',
|
24
|
-
sameElse: 'L'
|
25
|
-
},
|
26
|
-
relativeTime : {
|
27
|
-
future : "dans %s",
|
28
|
-
past : "il y a %s",
|
29
|
-
s : "quelques secondes",
|
30
|
-
m : "une minute",
|
31
|
-
mm : "%d minutes",
|
32
|
-
h : "une heure",
|
33
|
-
hh : "%d heures",
|
34
|
-
d : "un jour",
|
35
|
-
dd : "%d jours",
|
36
|
-
M : "un mois",
|
37
|
-
MM : "%d mois",
|
38
|
-
y : "une année",
|
39
|
-
yy : "%d années"
|
40
|
-
},
|
41
|
-
ordinal : function (number) {
|
42
|
-
return number === 1 ? 'er' : 'ème';
|
43
|
-
}
|
44
|
-
};
|
45
4
|
|
46
|
-
|
47
|
-
|
48
|
-
|
5
|
+
require('../moment').lang('fr', {
|
6
|
+
months : "janvier_février_mars_avril_mai_juin_juillet_août_septembre_octobre_novembre_décembre".split("_"),
|
7
|
+
monthsShort : "janv._févr._mars_avr._mai_juin_juil._août_sept._oct._nov._déc.".split("_"),
|
8
|
+
weekdays : "dimanche_lundi_mardi_mercredi_jeudi_vendredi_samedi".split("_"),
|
9
|
+
weekdaysShort : "dim._lun._mar._mer._jeu._ven._sam.".split("_"),
|
10
|
+
weekdaysMin : "Di_Lu_Ma_Me_Je_Ve_Sa".split("_"),
|
11
|
+
longDateFormat : {
|
12
|
+
LT : "HH:mm",
|
13
|
+
L : "DD/MM/YYYY",
|
14
|
+
LL : "D MMMM YYYY",
|
15
|
+
LLL : "D MMMM YYYY LT",
|
16
|
+
LLLL : "dddd D MMMM YYYY LT"
|
17
|
+
},
|
18
|
+
calendar : {
|
19
|
+
sameDay: "[Aujourd'hui à] LT",
|
20
|
+
nextDay: '[Demain à] LT',
|
21
|
+
nextWeek: 'dddd [à] LT',
|
22
|
+
lastDay: '[Hier à] LT',
|
23
|
+
lastWeek: 'dddd [dernier à] LT',
|
24
|
+
sameElse: 'L'
|
25
|
+
},
|
26
|
+
relativeTime : {
|
27
|
+
future : "dans %s",
|
28
|
+
past : "il y a %s",
|
29
|
+
s : "quelques secondes",
|
30
|
+
m : "une minute",
|
31
|
+
mm : "%d minutes",
|
32
|
+
h : "une heure",
|
33
|
+
hh : "%d heures",
|
34
|
+
d : "un jour",
|
35
|
+
dd : "%d jours",
|
36
|
+
M : "un mois",
|
37
|
+
MM : "%d mois",
|
38
|
+
y : "un an",
|
39
|
+
yy : "%d ans"
|
40
|
+
},
|
41
|
+
ordinal : function (number) {
|
42
|
+
return number + (number === 1 ? 'er' : 'ème');
|
43
|
+
},
|
44
|
+
week : {
|
45
|
+
dow : 1, // Monday is the first day of the week.
|
46
|
+
doy : 4 // The week that contains Jan 4th is the first week of the year.
|
49
47
|
}
|
50
|
-
|
51
|
-
if (typeof window !== 'undefined' && this.moment && this.moment.lang) {
|
52
|
-
this.moment.lang('fr', lang);
|
53
|
-
}
|
54
|
-
}());
|
48
|
+
});
|
@@ -1,64 +1,56 @@
|
|
1
1
|
// moment.js language configuration
|
2
2
|
// language : galician (gl)
|
3
3
|
// author : Juan G. Hurtado : https://github.com/juanghurtado
|
4
|
-
(function () {
|
5
|
-
var lang = {
|
6
|
-
months : "Xaneiro_Febreiro_Marzo_Abril_Maio_Xuño_Xullo_Agosto_Setembro_Octubro_Novembro_Decembro".split("_"),
|
7
|
-
monthsShort : "Xan._Feb._Mar._Abr._Mai._Xuñ._Xul._Ago._Set._Out._Nov._Dec.".split("_"),
|
8
|
-
weekdays : "Domingo_Luns_Martes_Mércores_Xoves_Venres_Sábado".split("_"),
|
9
|
-
weekdaysShort : "Dom._Lun._Mar._Mér._Xov._Ven._Sáb.".split("_"),
|
10
|
-
weekdaysMin : "Do_Lu_Ma_Mé_Xo_Ve_Sá".split("_"),
|
11
|
-
longDateFormat : {
|
12
|
-
LT : "H:mm",
|
13
|
-
L : "DD/MM/YYYY",
|
14
|
-
LL : "D MMMM YYYY",
|
15
|
-
LLL : "D MMMM YYYY LT",
|
16
|
-
LLLL : "dddd D MMMM YYYY LT"
|
17
|
-
},
|
18
|
-
calendar : {
|
19
|
-
sameDay : function () {
|
20
|
-
return '[hoxe ' + ((this.hours() !== 1) ? 'ás' : 'a') + '] LT';
|
21
|
-
},
|
22
|
-
nextDay : function () {
|
23
|
-
return '[mañá ' + ((this.hours() !== 1) ? 'ás' : 'a') + '] LT';
|
24
|
-
},
|
25
|
-
nextWeek : function () {
|
26
|
-
return 'dddd [' + ((this.hours() !== 1) ? 'ás' : 'a') + '] LT';
|
27
|
-
},
|
28
|
-
lastDay : function () {
|
29
|
-
return '[onte ' + ((this.hours() !== 1) ? 'á' : 'a') + '] LT';
|
30
|
-
},
|
31
|
-
lastWeek : function () {
|
32
|
-
return '[o] dddd [pasado ' + ((this.hours() !== 1) ? 'ás' : 'a') + '] LT';
|
33
|
-
},
|
34
|
-
sameElse : 'L'
|
35
|
-
},
|
36
|
-
relativeTime : {
|
37
|
-
future : "en %s",
|
38
|
-
past : "fai %s",
|
39
|
-
s : "uns segundo",
|
40
|
-
m : "un minuto",
|
41
|
-
mm : "%d minutos",
|
42
|
-
h : "unha hora",
|
43
|
-
hh : "%d horas",
|
44
|
-
d : "un día",
|
45
|
-
dd : "%d días",
|
46
|
-
M : "un mes",
|
47
|
-
MM : "%d meses",
|
48
|
-
y : "un ano",
|
49
|
-
yy : "%d anos"
|
50
|
-
},
|
51
|
-
ordinal : function (number) {
|
52
|
-
return 'º';
|
53
|
-
}
|
54
|
-
};
|
55
4
|
|
56
|
-
|
57
|
-
|
58
|
-
|
5
|
+
require('../moment').lang('gl', {
|
6
|
+
months : "Xaneiro_Febreiro_Marzo_Abril_Maio_Xuño_Xullo_Agosto_Setembro_Octubro_Novembro_Decembro".split("_"),
|
7
|
+
monthsShort : "Xan._Feb._Mar._Abr._Mai._Xuñ._Xul._Ago._Set._Out._Nov._Dec.".split("_"),
|
8
|
+
weekdays : "Domingo_Luns_Martes_Mércores_Xoves_Venres_Sábado".split("_"),
|
9
|
+
weekdaysShort : "Dom._Lun._Mar._Mér._Xov._Ven._Sáb.".split("_"),
|
10
|
+
weekdaysMin : "Do_Lu_Ma_Mé_Xo_Ve_Sá".split("_"),
|
11
|
+
longDateFormat : {
|
12
|
+
LT : "H:mm",
|
13
|
+
L : "DD/MM/YYYY",
|
14
|
+
LL : "D MMMM YYYY",
|
15
|
+
LLL : "D MMMM YYYY LT",
|
16
|
+
LLLL : "dddd D MMMM YYYY LT"
|
17
|
+
},
|
18
|
+
calendar : {
|
19
|
+
sameDay : function () {
|
20
|
+
return '[hoxe ' + ((this.hours() !== 1) ? 'ás' : 'a') + '] LT';
|
21
|
+
},
|
22
|
+
nextDay : function () {
|
23
|
+
return '[mañá ' + ((this.hours() !== 1) ? 'ás' : 'a') + '] LT';
|
24
|
+
},
|
25
|
+
nextWeek : function () {
|
26
|
+
return 'dddd [' + ((this.hours() !== 1) ? 'ás' : 'a') + '] LT';
|
27
|
+
},
|
28
|
+
lastDay : function () {
|
29
|
+
return '[onte ' + ((this.hours() !== 1) ? 'á' : 'a') + '] LT';
|
30
|
+
},
|
31
|
+
lastWeek : function () {
|
32
|
+
return '[o] dddd [pasado ' + ((this.hours() !== 1) ? 'ás' : 'a') + '] LT';
|
33
|
+
},
|
34
|
+
sameElse : 'L'
|
35
|
+
},
|
36
|
+
relativeTime : {
|
37
|
+
future : "en %s",
|
38
|
+
past : "fai %s",
|
39
|
+
s : "uns segundo",
|
40
|
+
m : "un minuto",
|
41
|
+
mm : "%d minutos",
|
42
|
+
h : "unha hora",
|
43
|
+
hh : "%d horas",
|
44
|
+
d : "un día",
|
45
|
+
dd : "%d días",
|
46
|
+
M : "un mes",
|
47
|
+
MM : "%d meses",
|
48
|
+
y : "un ano",
|
49
|
+
yy : "%d anos"
|
50
|
+
},
|
51
|
+
ordinal : '%dº',
|
52
|
+
week : {
|
53
|
+
dow : 1, // Monday is the first day of the week.
|
54
|
+
doy : 7 // The week that contains Jan 1st is the first week of the year.
|
59
55
|
}
|
60
|
-
|
61
|
-
if (typeof window !== 'undefined' && this.moment && this.moment.lang) {
|
62
|
-
this.moment.lang('gl', lang);
|
63
|
-
}
|
64
|
-
}());
|
56
|
+
});
|
@@ -0,0 +1,46 @@
|
|
1
|
+
// moment.js language configuration
|
2
|
+
// language : Hebrew (he)
|
3
|
+
// author : Tomer Cohen : https://github.com/tomer
|
4
|
+
// author : Moshe Simantov : https://github.com/DevelopmentIL
|
5
|
+
|
6
|
+
require('../moment').lang('he', {
|
7
|
+
months : "ינואר_פברואר_מרץ_אפריל_מאי_יוני_יולי_אוגוסט_ספטמבר_אוקטובר_נובמבר_דצמבר".split("_"),
|
8
|
+
monthsShort : "ינו׳_פבר׳_מרץ_אפר׳_מאי_יוני_יולי_אוג׳_ספט׳_אוק׳_נוב׳_דצמ׳".split("_"),
|
9
|
+
weekdays : "ראשון_שני_שלישי_רביעי_חמישי_שישי_שבת".split("_"),
|
10
|
+
weekdaysShort : "א׳_ב׳_ג׳_ד׳_ה׳_ו׳_ש׳".split("_"),
|
11
|
+
weekdaysMin : "א_ב_ג_ד_ה_ו_ש".split("_"),
|
12
|
+
longDateFormat : {
|
13
|
+
LT : "HH:mm",
|
14
|
+
L : "DD/MM/YYYY",
|
15
|
+
LL : "D [ב]MMMM YYYY",
|
16
|
+
LLL : "D [ב]MMMM YYYY LT",
|
17
|
+
LLLL : "dddd, D [ב]MMMM YYYY LT",
|
18
|
+
l : "D/M/YYYY",
|
19
|
+
ll : "D MMM YYYY",
|
20
|
+
lll : "D MMM YYYY LT",
|
21
|
+
llll : "ddd, D MMM YYYY LT"
|
22
|
+
},
|
23
|
+
calendar : {
|
24
|
+
sameDay : '[היום ב־]LT',
|
25
|
+
nextDay : '[מחר ב־]LT',
|
26
|
+
nextWeek : 'dddd [בשעה] LT',
|
27
|
+
lastDay : '[אתמול ב־]LT',
|
28
|
+
lastWeek : '[ביום] dddd [האחרון בשעה] LT',
|
29
|
+
sameElse : 'L'
|
30
|
+
},
|
31
|
+
relativeTime : {
|
32
|
+
future : "בעוד %s",
|
33
|
+
past : "לפני %s",
|
34
|
+
s : "מספר שניות",
|
35
|
+
m : "דקה",
|
36
|
+
mm : "%d דקות",
|
37
|
+
h : "שעה",
|
38
|
+
hh : "%d שעות",
|
39
|
+
d : "יום",
|
40
|
+
dd : "%d ימים",
|
41
|
+
M : "חודש",
|
42
|
+
MM : "%d חודשים",
|
43
|
+
y : "שנה",
|
44
|
+
yy : "%d שנים"
|
45
|
+
}
|
46
|
+
});
|
@@ -1,108 +1,87 @@
|
|
1
1
|
// moment.js language configuration
|
2
2
|
// language : hungarian (hu)
|
3
3
|
// author : Adam Brunner : https://github.com/adambrunner
|
4
|
-
(function()
|
5
|
-
{
|
6
|
-
function translate(number, withoutSuffix, key, isFuture) {
|
7
|
-
var num = number;
|
8
|
-
|
9
|
-
switch (key) {
|
10
|
-
case 's':
|
11
|
-
return (isFuture || withoutSuffix) ? 'néhány másodperc' : 'néhány másodperce';
|
12
|
-
|
13
|
-
case 'm':
|
14
|
-
num = 'egy';
|
15
|
-
case 'mm':
|
16
|
-
return num + (isFuture || withoutSuffix ? ' perc' : ' perce');
|
17
|
-
break;
|
18
4
|
|
19
|
-
|
20
|
-
num = 'egy';
|
21
|
-
case 'hh':
|
22
|
-
return num + (isFuture || withoutSuffix ? ' óra' : ' órája');
|
5
|
+
var weekEndings = 'vasárnap hétfőn kedden szerdán csütörtökön pénteken szombaton'.split(' ');
|
23
6
|
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
return num + (isFuture || withoutSuffix ? ' nap' : ' napja');
|
28
|
-
|
29
|
-
case 'M':
|
30
|
-
num = 'egy';
|
31
|
-
case 'MM':
|
32
|
-
return num + (isFuture || withoutSuffix ? ' hónap' : ' hónapja');
|
33
|
-
|
34
|
-
case 'y':
|
35
|
-
num = 'egy';
|
36
|
-
case 'yy':
|
37
|
-
return num + (isFuture || withoutSuffix ? ' év' : ' éve');
|
38
|
-
|
39
|
-
default:
|
40
|
-
}
|
41
|
-
|
42
|
-
return '';
|
43
|
-
}
|
7
|
+
function translate(number, withoutSuffix, key, isFuture) {
|
8
|
+
var num = number,
|
9
|
+
suffix;
|
44
10
|
|
45
|
-
|
46
|
-
|
47
|
-
|
48
|
-
|
49
|
-
|
50
|
-
|
51
|
-
|
52
|
-
|
53
|
-
|
54
|
-
|
55
|
-
|
56
|
-
|
11
|
+
switch (key) {
|
12
|
+
case 's':
|
13
|
+
return (isFuture || withoutSuffix) ? 'néhány másodperc' : 'néhány másodperce';
|
14
|
+
case 'm':
|
15
|
+
return 'egy' + (isFuture || withoutSuffix ? ' perc' : ' perce');
|
16
|
+
case 'mm':
|
17
|
+
return num + (isFuture || withoutSuffix ? ' perc' : ' perce');
|
18
|
+
case 'h':
|
19
|
+
return 'egy' + (isFuture || withoutSuffix ? ' óra' : ' órája');
|
20
|
+
case 'hh':
|
21
|
+
return num + (isFuture || withoutSuffix ? ' óra' : ' órája');
|
22
|
+
case 'd':
|
23
|
+
return 'egy' + (isFuture || withoutSuffix ? ' nap' : ' napja');
|
24
|
+
case 'dd':
|
25
|
+
return num + (isFuture || withoutSuffix ? ' nap' : ' napja');
|
26
|
+
case 'M':
|
27
|
+
return 'egy' + (isFuture || withoutSuffix ? ' hónap' : ' hónapja');
|
28
|
+
case 'MM':
|
29
|
+
return num + (isFuture || withoutSuffix ? ' hónap' : ' hónapja');
|
30
|
+
case 'y':
|
31
|
+
return 'egy' + (isFuture || withoutSuffix ? ' év' : ' éve');
|
32
|
+
case 'yy':
|
33
|
+
return num + (isFuture || withoutSuffix ? ' év' : ' éve');
|
57
34
|
}
|
58
|
-
|
59
|
-
var lang = {
|
60
|
-
months : "január_február_március_április_május_június_július_augusztus_szeptember_október_november_december".split("_"),
|
61
|
-
monthsShort : "jan_feb_márc_ápr_máj_jún_júl_aug_szept_okt_nov_dec".split("_"),
|
62
|
-
weekdays : "vasárnap_hétfő_kedd_szerda_csütörtök_péntek_szombat".split("_"),
|
63
|
-
weekdaysShort : "v_h_k_sze_cs_p_szo".split("_"),
|
64
|
-
longDateFormat : {
|
65
|
-
LT : "H:mm",
|
66
|
-
L : "YYYY.MM.DD.",
|
67
|
-
LL : "YYYY. MMMM D.",
|
68
|
-
LLL : "YYYY. MMMM D., LT",
|
69
|
-
LLLL : "YYYY. MMMM D., dddd LT"
|
70
|
-
},
|
71
|
-
calendar : {
|
72
|
-
sameDay : '[ma] LT[-kor]',
|
73
|
-
nextDay : '[holnap] LT[-kor]',
|
74
|
-
nextWeek : function(){return week.call(this, true);},
|
75
|
-
lastDay : '[tegnap] LT[-kor]',
|
76
|
-
lastWeek : function(){return week.call(this, false);},
|
77
|
-
sameElse : 'L'
|
78
|
-
},
|
79
|
-
relativeTime : {
|
80
|
-
future : "%s múlva",
|
81
|
-
past : "%s",
|
82
|
-
s : translate,
|
83
|
-
m : translate,
|
84
|
-
mm : translate,
|
85
|
-
h : translate,
|
86
|
-
hh : translate,
|
87
|
-
d : translate,
|
88
|
-
dd : translate,
|
89
|
-
M : translate,
|
90
|
-
MM : translate,
|
91
|
-
y : translate,
|
92
|
-
yy : translate
|
93
|
-
},
|
94
|
-
ordinal : function(number) {
|
95
|
-
return '.';
|
96
|
-
}
|
97
|
-
};
|
98
35
|
|
99
|
-
|
100
|
-
|
101
|
-
|
102
|
-
|
36
|
+
return '';
|
37
|
+
}
|
38
|
+
|
39
|
+
function week(isFuture) {
|
40
|
+
return (isFuture ? '' : 'múlt ') + '[' + weekEndings[this.day()] + '] LT[-kor]';
|
41
|
+
}
|
103
42
|
|
104
|
-
|
105
|
-
|
106
|
-
|
43
|
+
require('../moment').lang('hu', {
|
44
|
+
months : "január_február_március_április_május_június_július_augusztus_szeptember_október_november_december".split("_"),
|
45
|
+
monthsShort : "jan_feb_márc_ápr_máj_jún_júl_aug_szept_okt_nov_dec".split("_"),
|
46
|
+
weekdays : "vasárnap_hétfő_kedd_szerda_csütörtök_péntek_szombat".split("_"),
|
47
|
+
weekdaysShort : "v_h_k_sze_cs_p_szo".split("_"),
|
48
|
+
longDateFormat : {
|
49
|
+
LT : "H:mm",
|
50
|
+
L : "YYYY.MM.DD.",
|
51
|
+
LL : "YYYY. MMMM D.",
|
52
|
+
LLL : "YYYY. MMMM D., LT",
|
53
|
+
LLLL : "YYYY. MMMM D., dddd LT"
|
54
|
+
},
|
55
|
+
calendar : {
|
56
|
+
sameDay : '[ma] LT[-kor]',
|
57
|
+
nextDay : '[holnap] LT[-kor]',
|
58
|
+
nextWeek : function () {
|
59
|
+
return week.call(this, true);
|
60
|
+
},
|
61
|
+
lastDay : '[tegnap] LT[-kor]',
|
62
|
+
lastWeek : function () {
|
63
|
+
return week.call(this, false);
|
64
|
+
},
|
65
|
+
sameElse : 'L'
|
66
|
+
},
|
67
|
+
relativeTime : {
|
68
|
+
future : "%s múlva",
|
69
|
+
past : "%s",
|
70
|
+
s : translate,
|
71
|
+
m : translate,
|
72
|
+
mm : translate,
|
73
|
+
h : translate,
|
74
|
+
hh : translate,
|
75
|
+
d : translate,
|
76
|
+
dd : translate,
|
77
|
+
M : translate,
|
78
|
+
MM : translate,
|
79
|
+
y : translate,
|
80
|
+
yy : translate
|
81
|
+
},
|
82
|
+
ordinal : '%d.',
|
83
|
+
week : {
|
84
|
+
dow : 1, // Monday is the first day of the week.
|
85
|
+
doy : 7 // The week that contains Jan 1st is the first week of the year.
|
107
86
|
}
|
108
|
-
}
|
87
|
+
});
|