Merge "Revert "Use display name in category page subheadings if provided""
[lhc/web/wiklou.git] / resources / lib / moment / locale / ro.js
1 // moment.js locale configuration
2 // locale : romanian (ro)
3 // author : Vlad Gurdiga : https://github.com/gurdiga
4 // author : Valentin Agachi : https://github.com/avaly
5
6 (function (factory) {
7 // Comment out broken wrapper, see T145382
8 /*if (typeof define === 'function' && define.amd) {
9 define(['moment'], factory); // AMD
10 } else if (typeof exports === 'object') {
11 module.exports = factory(require('../moment')); // Node
12 } else {
13 factory((typeof global !== 'undefined' ? global : this).moment); // node or other global
14 }*/
15 factory(this.moment);
16 }(function (moment) {
17 function relativeTimeWithPlural(number, withoutSuffix, key) {
18 var format = {
19 'mm': 'minute',
20 'hh': 'ore',
21 'dd': 'zile',
22 'MM': 'luni',
23 'yy': 'ani'
24 },
25 separator = ' ';
26 if (number % 100 >= 20 || (number >= 100 && number % 100 === 0)) {
27 separator = ' de ';
28 }
29
30 return number + separator + format[key];
31 }
32
33 return moment.defineLocale('ro', {
34 months : 'ianuarie_februarie_martie_aprilie_mai_iunie_iulie_august_septembrie_octombrie_noiembrie_decembrie'.split('_'),
35 monthsShort : 'ian._febr._mart._apr._mai_iun._iul._aug._sept._oct._nov._dec.'.split('_'),
36 weekdays : 'duminică_luni_marți_miercuri_joi_vineri_sâmbătă'.split('_'),
37 weekdaysShort : 'Dum_Lun_Mar_Mie_Joi_Vin_Sâm'.split('_'),
38 weekdaysMin : 'Du_Lu_Ma_Mi_Jo_Vi_Sâ'.split('_'),
39 longDateFormat : {
40 LT : 'H:mm',
41 LTS : 'LT:ss',
42 L : 'DD.MM.YYYY',
43 LL : 'D MMMM YYYY',
44 LLL : 'D MMMM YYYY H:mm',
45 LLLL : 'dddd, D MMMM YYYY H:mm'
46 },
47 calendar : {
48 sameDay: '[azi la] LT',
49 nextDay: '[mâine la] LT',
50 nextWeek: 'dddd [la] LT',
51 lastDay: '[ieri la] LT',
52 lastWeek: '[fosta] dddd [la] LT',
53 sameElse: 'L'
54 },
55 relativeTime : {
56 future : 'peste %s',
57 past : '%s în urmă',
58 s : 'câteva secunde',
59 m : 'un minut',
60 mm : relativeTimeWithPlural,
61 h : 'o oră',
62 hh : relativeTimeWithPlural,
63 d : 'o zi',
64 dd : relativeTimeWithPlural,
65 M : 'o lună',
66 MM : relativeTimeWithPlural,
67 y : 'un an',
68 yy : relativeTimeWithPlural
69 },
70 week : {
71 dow : 1, // Monday is the first day of the week.
72 doy : 7 // The week that contains Jan 1st is the first week of the year.
73 }
74 });
75 }));