Merge "Add support for PHP7 random_bytes in favor of mcrypt_create_iv"
[lhc/web/wiklou.git] / resources / lib / moment / locale / bn.js
1 //! moment.js locale configuration
2 //! locale : Bengali [bn]
3 //! author : Kaushik Gandhi : https://github.com/kaushikgandhi
4
5 ;(function (global, factory) {
6 typeof exports === 'object' && typeof module !== 'undefined'
7 && typeof require === 'function' ? factory(require('../moment')) :
8 typeof define === 'function' && define.amd ? define(['../moment'], factory) :
9 factory(global.moment)
10 }(this, function (moment) { 'use strict';
11
12
13 var symbolMap = {
14 '1': '১',
15 '2': '২',
16 '3': '৩',
17 '4': '৪',
18 '5': '৫',
19 '6': '৬',
20 '7': '৭',
21 '8': '৮',
22 '9': '৯',
23 '0': '০'
24 },
25 numberMap = {
26 '১': '1',
27 '২': '2',
28 '৩': '3',
29 '৪': '4',
30 '৫': '5',
31 '৬': '6',
32 '৭': '7',
33 '৮': '8',
34 '৯': '9',
35 '০': '0'
36 };
37
38 var bn = moment.defineLocale('bn', {
39 months : 'জানুয়ারী_ফেব্রুয়ারি_মার্চ_এপ্রিল_মে_জুন_জুলাই_আগস্ট_সেপ্টেম্বর_অক্টোবর_নভেম্বর_ডিসেম্বর'.split('_'),
40 monthsShort : 'জানু_ফেব_মার্চ_এপ্র_মে_জুন_জুল_আগ_সেপ্ট_অক্টো_নভে_ডিসে'.split('_'),
41 weekdays : 'রবিবার_সোমবার_মঙ্গলবার_বুধবার_বৃহস্পতিবার_শুক্রবার_শনিবার'.split('_'),
42 weekdaysShort : 'রবি_সোম_মঙ্গল_বুধ_বৃহস্পতি_শুক্র_শনি'.split('_'),
43 weekdaysMin : 'রবি_সোম_মঙ্গ_বুধ_বৃহঃ_শুক্র_শনি'.split('_'),
44 longDateFormat : {
45 LT : 'A h:mm সময়',
46 LTS : 'A h:mm:ss সময়',
47 L : 'DD/MM/YYYY',
48 LL : 'D MMMM YYYY',
49 LLL : 'D MMMM YYYY, A h:mm সময়',
50 LLLL : 'dddd, D MMMM YYYY, A h:mm সময়'
51 },
52 calendar : {
53 sameDay : '[আজ] LT',
54 nextDay : '[আগামীকাল] LT',
55 nextWeek : 'dddd, LT',
56 lastDay : '[গতকাল] LT',
57 lastWeek : '[গত] dddd, LT',
58 sameElse : 'L'
59 },
60 relativeTime : {
61 future : '%s পরে',
62 past : '%s আগে',
63 s : 'কয়েক সেকেন্ড',
64 m : 'এক মিনিট',
65 mm : '%d মিনিট',
66 h : 'এক ঘন্টা',
67 hh : '%d ঘন্টা',
68 d : 'এক দিন',
69 dd : '%d দিন',
70 M : 'এক মাস',
71 MM : '%d মাস',
72 y : 'এক বছর',
73 yy : '%d বছর'
74 },
75 preparse: function (string) {
76 return string.replace(/[১২৩৪৫৬৭৮৯০]/g, function (match) {
77 return numberMap[match];
78 });
79 },
80 postformat: function (string) {
81 return string.replace(/\d/g, function (match) {
82 return symbolMap[match];
83 });
84 },
85 meridiemParse: /রাত|সকাল|দুপুর|বিকাল|রাত/,
86 meridiemHour : function (hour, meridiem) {
87 if (hour === 12) {
88 hour = 0;
89 }
90 if ((meridiem === 'রাত' && hour >= 4) ||
91 (meridiem === 'দুপুর' && hour < 5) ||
92 meridiem === 'বিকাল') {
93 return hour + 12;
94 } else {
95 return hour;
96 }
97 },
98 meridiem : function (hour, minute, isLower) {
99 if (hour < 4) {
100 return 'রাত';
101 } else if (hour < 10) {
102 return 'সকাল';
103 } else if (hour < 17) {
104 return 'দুপুর';
105 } else if (hour < 20) {
106 return 'বিকাল';
107 } else {
108 return 'রাত';
109 }
110 },
111 week : {
112 dow : 0, // Sunday is the first day of the week.
113 doy : 6 // The week that contains Jan 1st is the first week of the year.
114 }
115 });
116
117 return bn;
118
119 }));