Merge "DatabaseMssql: Don't duplicate body of makeList()"
[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 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((typeof global !== 'undefined' ? global : this).moment); // node or other global
13 }
14 }(function (moment) {
15 function relativeTimeWithPlural(number, withoutSuffix, key) {
16 var format = {
17 'mm': 'minute',
18 'hh': 'ore',
19 'dd': 'zile',
20 'MM': 'luni',
21 'yy': 'ani'
22 },
23 separator = ' ';
24 if (number % 100 >= 20 || (number >= 100 && number % 100 === 0)) {
25 separator = ' de ';
26 }
27
28 return number + separator + format[key];
29 }
30
31 return moment.defineLocale('ro', {
32 months : 'ianuarie_februarie_martie_aprilie_mai_iunie_iulie_august_septembrie_octombrie_noiembrie_decembrie'.split('_'),
33 monthsShort : 'ian._febr._mart._apr._mai_iun._iul._aug._sept._oct._nov._dec.'.split('_'),
34 weekdays : 'duminică_luni_marți_miercuri_joi_vineri_sâmbătă'.split('_'),
35 weekdaysShort : 'Dum_Lun_Mar_Mie_Joi_Vin_Sâm'.split('_'),
36 weekdaysMin : 'Du_Lu_Ma_Mi_Jo_Vi_Sâ'.split('_'),
37 longDateFormat : {
38 LT : 'H:mm',
39 LTS : 'LT:ss',
40 L : 'DD.MM.YYYY',
41 LL : 'D MMMM YYYY',
42 LLL : 'D MMMM YYYY H:mm',
43 LLLL : 'dddd, D MMMM YYYY H:mm'
44 },
45 calendar : {
46 sameDay: '[azi la] LT',
47 nextDay: '[mâine la] LT',
48 nextWeek: 'dddd [la] LT',
49 lastDay: '[ieri la] LT',
50 lastWeek: '[fosta] dddd [la] LT',
51 sameElse: 'L'
52 },
53 relativeTime : {
54 future : 'peste %s',
55 past : '%s în urmă',
56 s : 'câteva secunde',
57 m : 'un minut',
58 mm : relativeTimeWithPlural,
59 h : 'o oră',
60 hh : relativeTimeWithPlural,
61 d : 'o zi',
62 dd : relativeTimeWithPlural,
63 M : 'o lună',
64 MM : relativeTimeWithPlural,
65 y : 'un an',
66 yy : relativeTimeWithPlural
67 },
68 week : {
69 dow : 1, // Monday is the first day of the week.
70 doy : 7 // The week that contains Jan 1st is the first week of the year.
71 }
72 });
73 }));