tizen beta release
[framework/web/web-ui-fw.git] / libs / js / globalize / lib / cultures / globalize.culture.ar-LB.js
1 /*
2  * Globalize Culture ar-LB
3  *
4  * http://github.com/jquery/globalize
5  *
6  * Copyright Software Freedom Conservancy, Inc.
7  * Dual licensed under the MIT or GPL Version 2 licenses.
8  * http://jquery.org/license
9  *
10  * This file was generated by the Globalize Culture Generator
11  * Translation: bugs found in this file need to be fixed in the generator
12  */
13
14 (function( window, undefined ) {
15
16 var Globalize;
17
18 if ( typeof require !== "undefined"
19         && typeof exports !== "undefined"
20         && typeof module !== "undefined" ) {
21         // Assume CommonJS
22         Globalize = require( "globalize" );
23 } else {
24         // Global variable
25         Globalize = window.Globalize;
26 }
27
28 Globalize.addCultureInfo( "ar-LB", "default", {
29         name: "ar-LB",
30         englishName: "Arabic (Lebanon)",
31         nativeName: "العربية (لبنان)",
32         language: "ar",
33         isRTL: true,
34         numberFormat: {
35                 pattern: ["n-"],
36                 NaN: "ليس برقم",
37                 negativeInfinity: "-لا نهاية",
38                 positiveInfinity: "+لا نهاية",
39                 currency: {
40                         pattern: ["$n-","$ n"],
41                         symbol: "ل.ل.‏"
42                 }
43         },
44         calendars: {
45                 standard: {
46                         firstDay: 1,
47                         days: {
48                                 names: ["الأحد","الإثنين","الثلاثاء","الأربعاء","الخميس","الجمعة","السبت"],
49                                 namesAbbr: ["الأحد","الإثنين","الثلاثاء","الأربعاء","الخميس","الجمعة","السبت"],
50                                 namesShort: ["ح","ن","ث","ر","خ","ج","س"]
51                         },
52                         months: {
53                                 names: ["كانون الثاني","شباط","آذار","نيسان","أيار","حزيران","تموز","آب","أيلول","تشرين الأول","تشرين الثاني","كانون الأول",""],
54                                 namesAbbr: ["كانون الثاني","شباط","آذار","نيسان","أيار","حزيران","تموز","آب","أيلول","تشرين الأول","تشرين الثاني","كانون الأول",""]
55                         },
56                         AM: ["ص","ص","ص"],
57                         PM: ["م","م","م"],
58                         patterns: {
59                                 d: "dd/MM/yyyy",
60                                 D: "dd MMMM, yyyy",
61                                 t: "hh:mm tt",
62                                 T: "hh:mm:ss tt",
63                                 f: "dd MMMM, yyyy hh:mm tt",
64                                 F: "dd MMMM, yyyy hh:mm:ss tt",
65                                 M: "dd MMMM"
66                         }
67                 },
68                 UmAlQura: {
69                         name: "UmAlQura",
70                         firstDay: 1,
71                         days: {
72                                 names: ["الأحد","الإثنين","الثلاثاء","الأربعاء","الخميس","الجمعة","السبت"],
73                                 namesAbbr: ["الأحد","الإثنين","الثلاثاء","الأربعاء","الخميس","الجمعة","السبت"],
74                                 namesShort: ["ح","ن","ث","ر","خ","ج","س"]
75                         },
76                         months: {
77                                 names: ["محرم","صفر","ربيع الأول","ربيع الثاني","جمادى الأولى","جمادى الثانية","رجب","شعبان","رمضان","شوال","ذو القعدة","ذو الحجة",""],
78                                 namesAbbr: ["محرم","صفر","ربيع الأول","ربيع الثاني","جمادى الأولى","جمادى الثانية","رجب","شعبان","رمضان","شوال","ذو القعدة","ذو الحجة",""]
79                         },
80                         AM: ["ص","ص","ص"],
81                         PM: ["م","م","م"],
82                         eras: [{"name":"بعد الهجرة","start":null,"offset":0}],
83                         twoDigitYearMax: 1451,
84                         patterns: {
85                                 d: "dd/MM/yy",
86                                 D: "dd/MMMM/yyyy",
87                                 t: "hh:mm tt",
88                                 T: "hh:mm:ss tt",
89                                 f: "dd/MMMM/yyyy hh:mm tt",
90                                 F: "dd/MMMM/yyyy hh:mm:ss tt",
91                                 M: "dd MMMM"
92                         },
93                         convert: {
94                     _yearInfo: [
95                         // MonthLengthFlags, Gregorian Date
96                         [746, -2198707200000],
97                         [1769, -2168121600000],
98                         [3794, -2137449600000],
99                         [3748, -2106777600000],
100                         [3402, -2076192000000],
101                         [2710, -2045606400000],
102                         [1334, -2015020800000],
103                         [2741, -1984435200000],
104                         [3498, -1953763200000],
105                         [2980, -1923091200000],
106                         [2889, -1892505600000],
107                         [2707, -1861920000000],
108                         [1323, -1831334400000],
109                         [2647, -1800748800000],
110                         [1206, -1770076800000],
111                         [2741, -1739491200000],
112                         [1450, -1708819200000],
113                         [3413, -1678233600000],
114                         [3370, -1647561600000],
115                         [2646, -1616976000000],
116                         [1198, -1586390400000],
117                         [2397, -1555804800000],
118                         [748, -1525132800000],
119                         [1749, -1494547200000],
120                         [1706, -1463875200000],
121                         [1365, -1433289600000],
122                         [1195, -1402704000000],
123                         [2395, -1372118400000],
124                         [698, -1341446400000],
125                         [1397, -1310860800000],
126                         [2994, -1280188800000],
127                         [1892, -1249516800000],
128                         [1865, -1218931200000],
129                         [1621, -1188345600000],
130                         [683, -1157760000000],
131                         [1371, -1127174400000],
132                         [2778, -1096502400000],
133                         [1748, -1065830400000],
134                         [3785, -1035244800000],
135                         [3474, -1004572800000],
136                         [3365, -973987200000],
137                         [2637, -943401600000],
138                         [685, -912816000000],
139                         [1389, -882230400000],
140                         [2922, -851558400000],
141                         [2898, -820886400000],
142                         [2725, -790300800000],
143                         [2635, -759715200000],
144                         [1175, -729129600000],
145                         [2359, -698544000000],
146                         [694, -667872000000],
147                         [1397, -637286400000],
148                         [3434, -606614400000],
149                         [3410, -575942400000],
150                         [2710, -545356800000],
151                         [2349, -514771200000],
152                         [605, -484185600000],
153                         [1245, -453600000000],
154                         [2778, -422928000000],
155                         [1492, -392256000000],
156                         [3497, -361670400000],
157                         [3410, -330998400000],
158                         [2730, -300412800000],
159                         [1238, -269827200000],
160                         [2486, -239241600000],
161                         [884, -208569600000],
162                         [1897, -177984000000],
163                         [1874, -147312000000],
164                         [1701, -116726400000],
165                         [1355, -86140800000],
166                         [2731, -55555200000],
167                         [1370, -24883200000],
168                         [2773, 5702400000],
169                         [3538, 36374400000],
170                         [3492, 67046400000],
171                         [3401, 97632000000],
172                         [2709, 128217600000],
173                         [1325, 158803200000],
174                         [2653, 189388800000],
175                         [1370, 220060800000],
176                         [2773, 250646400000],
177                         [1706, 281318400000],
178                         [1685, 311904000000],
179                         [1323, 342489600000],
180                         [2647, 373075200000],
181                         [1198, 403747200000],
182                         [2422, 434332800000],
183                         [1388, 465004800000],
184                         [2901, 495590400000],
185                         [2730, 526262400000],
186                         [2645, 556848000000],
187                         [1197, 587433600000],
188                         [2397, 618019200000],
189                         [730, 648691200000],
190                         [1497, 679276800000],
191                         [3506, 709948800000],
192                         [2980, 740620800000],
193                         [2890, 771206400000],
194                         [2645, 801792000000],
195                         [693, 832377600000],
196                         [1397, 862963200000],
197                         [2922, 893635200000],
198                         [3026, 924307200000],
199                         [3012, 954979200000],
200                         [2953, 985564800000],
201                         [2709, 1016150400000],
202                         [1325, 1046736000000],
203                         [1453, 1077321600000],
204                         [2922, 1107993600000],
205                         [1748, 1138665600000],
206                         [3529, 1169251200000],
207                         [3474, 1199923200000],
208                         [2726, 1230508800000],
209                         [2390, 1261094400000],
210                         [686, 1291680000000],
211                         [1389, 1322265600000],
212                         [874, 1352937600000],
213                         [2901, 1383523200000],
214                         [2730, 1414195200000],
215                         [2381, 1444780800000],
216                         [1181, 1475366400000],
217                         [2397, 1505952000000],
218                         [698, 1536624000000],
219                         [1461, 1567209600000],
220                         [1450, 1597881600000],
221                         [3413, 1628467200000],
222                         [2714, 1659139200000],
223                         [2350, 1689724800000],
224                         [622, 1720310400000],
225                         [1373, 1750896000000],
226                         [2778, 1781568000000],
227                         [1748, 1812240000000],
228                         [1701, 1842825600000],
229                         [0, 1873411200000]
230                     ],
231                     minDate: -2198707200000,
232                     maxDate: 1873411199999,
233                     toGregorian: function(hyear, hmonth, hday) {
234                         var days = hday - 1,
235                             gyear = hyear - 1318;
236                         if (gyear < 0 || gyear >= this._yearInfo.length) return null;
237                         var info = this._yearInfo[gyear],
238                             gdate = new Date(info[1]),
239                             monthLength = info[0];
240                         // Date's ticks in javascript are always from the GMT time,
241                         // but we are interested in the gregorian date in the same timezone,
242                         // not what the gregorian date was at GMT time, so we adjust for the offset.
243                         gdate.setMinutes(gdate.getMinutes() + gdate.getTimezoneOffset());
244                         for (var i = 0; i < hmonth; i++) {
245                             days += 29 + (monthLength & 1);
246                             monthLength = monthLength >> 1;
247                         }
248                         gdate.setDate(gdate.getDate() + days);
249                         return gdate;
250                     },
251                     fromGregorian: function(gdate) {
252                         // Date's ticks in javascript are always from the GMT time,
253                         // but we are interested in the hijri date in the same timezone,
254                         // not what the hijri date was at GMT time, so we adjust for the offset.
255                         var ticks = gdate - gdate.getTimezoneOffset() * 60000;
256                         if (ticks < this.minDate || ticks > this.maxDate) return null;
257                         var hyear = 0,
258                             hmonth = 1;
259                         // find the earliest gregorian date in the array that is greater than or equal to the given date
260                         while (ticks > this._yearInfo[++hyear][1]) { }
261                         if (ticks !== this._yearInfo[hyear][1]) {
262                             hyear--;
263                         }
264                         var info = this._yearInfo[hyear],
265                             // how many days has it been since the date we found in the array?
266                             // 86400000 = ticks per day
267                             days = Math.floor((ticks - info[1]) / 86400000),
268                             monthLength = info[0];
269                         hyear += 1318; // the Nth array entry corresponds to hijri year 1318+N
270                         // now increment day/month based on the total days, considering
271                         // how many days are in each month. We cannot run past the year
272                         // mark since we would have found a different array entry in that case.
273                         var daysInMonth = 29 + (monthLength & 1);
274                         while (days >= daysInMonth) {
275                             days -= daysInMonth;
276                             monthLength = monthLength >> 1;
277                             daysInMonth = 29 + (monthLength & 1);
278                             hmonth++;
279                         }
280                         // remaining days is less than is in one month, thus is the day of the month we landed on
281                         // hmonth-1 because in javascript months are zero based, stay consistent with that.
282                         return [hyear, hmonth - 1, days + 1];
283                     }
284                         }
285                 },
286                 Hijri: {
287                         name: "Hijri",
288                         firstDay: 1,
289                         days: {
290                                 names: ["الأحد","الإثنين","الثلاثاء","الأربعاء","الخميس","الجمعة","السبت"],
291                                 namesAbbr: ["الأحد","الإثنين","الثلاثاء","الأربعاء","الخميس","الجمعة","السبت"],
292                                 namesShort: ["ح","ن","ث","ر","خ","ج","س"]
293                         },
294                         months: {
295                                 names: ["محرم","صفر","ربيع الأول","ربيع الثاني","جمادى الأولى","جمادى الثانية","رجب","شعبان","رمضان","شوال","ذو القعدة","ذو الحجة",""],
296                                 namesAbbr: ["محرم","صفر","ربيع الأول","ربيع الثاني","جمادى الأولى","جمادى الثانية","رجب","شعبان","رمضان","شوال","ذو القعدة","ذو الحجة",""]
297                         },
298                         AM: ["ص","ص","ص"],
299                         PM: ["م","م","م"],
300                         eras: [{"name":"بعد الهجرة","start":null,"offset":0}],
301                         twoDigitYearMax: 1451,
302                         patterns: {
303                                 d: "dd/MM/yy",
304                                 D: "dd/MM/yyyy",
305                                 t: "hh:mm tt",
306                                 T: "hh:mm:ss tt",
307                                 f: "dd/MM/yyyy hh:mm tt",
308                                 F: "dd/MM/yyyy hh:mm:ss tt",
309                                 M: "dd MMMM"
310                         },
311                         convert: {
312                     // Adapted to Script from System.Globalization.HijriCalendar
313                     ticks1970: 62135596800000,
314                     // number of days leading up to each month
315                     monthDays: [0, 30, 59, 89, 118, 148, 177, 207, 236, 266, 295, 325, 355],
316                     minDate: -42521673600000,
317                     maxDate: 253402300799999,
318                     // The number of days to add or subtract from the calendar to accommodate the variances
319                     // in the start and the end of Ramadan and to accommodate the date difference between
320                     // countries/regions. May be dynamically adjusted based on user preference, but should
321                     // remain in the range of -2 to 2, inclusive.
322                     hijriAdjustment: 0,
323                     toGregorian: function(hyear, hmonth, hday) {
324                         var daysSinceJan0101 = this.daysToYear(hyear) + this.monthDays[hmonth] + hday - 1 - this.hijriAdjustment;
325                         // 86400000 = ticks per day
326                         var gdate = new Date(daysSinceJan0101 * 86400000 - this.ticks1970);
327                         // adjust for timezone, because we are interested in the gregorian date for the same timezone
328                         // but ticks in javascript is always from GMT, unlike the server were ticks counts from the base
329                         // date in the current timezone.
330                         gdate.setMinutes(gdate.getMinutes() + gdate.getTimezoneOffset());
331                         return gdate;
332                     },
333                     fromGregorian: function(gdate) {
334                         if ((gdate < this.minDate) || (gdate > this.maxDate)) return null;
335                         var ticks = this.ticks1970 + (gdate-0) - gdate.getTimezoneOffset() * 60000,
336                             daysSinceJan0101 = Math.floor(ticks / 86400000) + 1 + this.hijriAdjustment;
337                         // very particular formula determined by someone smart, adapted from the server-side implementation.
338                         // it approximates the hijri year.
339                         var hday, hmonth, hyear = Math.floor(((daysSinceJan0101 - 227013) * 30) / 10631) + 1,
340                             absDays = this.daysToYear(hyear),
341                             daysInYear = this.isLeapYear(hyear) ? 355 : 354;
342                         // hyear is just approximate, it may need adjustment up or down by 1.
343                         if (daysSinceJan0101 < absDays) {
344                             hyear--;
345                             absDays -= daysInYear;
346                         }
347                         else if (daysSinceJan0101 === absDays) {
348                             hyear--;
349                             absDays = this.daysToYear(hyear);
350                         }
351                         else {
352                             if (daysSinceJan0101 > (absDays + daysInYear)) {
353                                 absDays += daysInYear;
354                                 hyear++;
355                             }
356                         }
357                         // determine month by looking at how many days into the hyear we are
358                         // monthDays contains the number of days up to each month.
359                         hmonth = 0;
360                         var daysIntoYear = daysSinceJan0101 - absDays;
361                         while (hmonth <= 11 && daysIntoYear > this.monthDays[hmonth]) {
362                             hmonth++;
363                         }
364                         hmonth--;
365                         hday = daysIntoYear - this.monthDays[hmonth];
366                         return [hyear, hmonth, hday];
367                     },
368                     daysToYear: function(year) {
369                         // calculates how many days since Jan 1, 0001
370                         var yearsToYear30 = Math.floor((year - 1) / 30) * 30,
371                             yearsInto30 = year - yearsToYear30 - 1,
372                             days = Math.floor((yearsToYear30 * 10631) / 30) + 227013;
373                         while (yearsInto30 > 0) {
374                             days += (this.isLeapYear(yearsInto30) ? 355 : 354);
375                             yearsInto30--;
376                         }
377                         return days;
378                     },
379                     isLeapYear: function(year) {
380                         return ((((year * 11) + 14) % 30) < 11);
381                     }
382                         }
383                 },
384                 Gregorian_MiddleEastFrench: {
385                         name: "Gregorian_MiddleEastFrench",
386                         firstDay: 1,
387                         days: {
388                                 names: ["dimanche","lundi","mardi","mercredi","jeudi","vendredi","samedi"],
389                                 namesAbbr: ["dim.","lun.","mar.","mer.","jeu.","ven.","sam."],
390                                 namesShort: ["di","lu","ma","me","je","ve","sa"]
391                         },
392                         months: {
393                                 names: ["janvier","février","mars","avril","mai","juin","juillet","août","septembre","octobre","novembre","décembre",""],
394                                 namesAbbr: ["janv.","févr.","mars","avr.","mai","juin","juil.","août","sept.","oct.","nov.","déc.",""]
395                         },
396                         AM: ["ص","ص","ص"],
397                         PM: ["م","م","م"],
398                         eras: [{"name":"ap. J.-C.","start":null,"offset":0}],
399                         patterns: {
400                                 d: "MM/dd/yyyy",
401                                 t: "hh:mm tt",
402                                 T: "hh:mm:ss tt",
403                                 f: "dddd, MMMM dd, yyyy hh:mm tt",
404                                 F: "dddd, MMMM dd, yyyy hh:mm:ss tt",
405                                 M: "dd MMMM"
406                         }
407                 },
408                 Gregorian_TransliteratedEnglish: {
409                         name: "Gregorian_TransliteratedEnglish",
410                         firstDay: 1,
411                         days: {
412                                 names: ["الأحد","الإثنين","الثلاثاء","الأربعاء","الخميس","الجمعة","السبت"],
413                                 namesAbbr: ["الأحد","الإثنين","الثلاثاء","الأربعاء","الخميس","الجمعة","السبت"],
414                                 namesShort: ["أ","ا","ث","أ","خ","ج","س"]
415                         },
416                         months: {
417                                 names: ["يناير","فبراير","مارس","أبريل","مايو","يونيو","يوليو","أغسطس","سبتمبر","أكتوبر","نوفمبر","ديسمبر",""],
418                                 namesAbbr: ["يناير","فبراير","مارس","ابريل","مايو","يونيو","يوليو","اغسطس","سبتمبر","اكتوبر","نوفمبر","ديسمبر",""]
419                         },
420                         AM: ["ص","ص","ص"],
421                         PM: ["م","م","م"],
422                         eras: [{"name":"م","start":null,"offset":0}],
423                         patterns: {
424                                 d: "MM/dd/yyyy",
425                                 t: "hh:mm tt",
426                                 T: "hh:mm:ss tt",
427                                 f: "dddd, MMMM dd, yyyy hh:mm tt",
428                                 F: "dddd, MMMM dd, yyyy hh:mm:ss tt"
429                         }
430                 },
431                 Gregorian_TransliteratedFrench: {
432                         name: "Gregorian_TransliteratedFrench",
433                         firstDay: 1,
434                         days: {
435                                 names: ["الأحد","الإثنين","الثلاثاء","الأربعاء","الخميس","الجمعة","السبت"],
436                                 namesAbbr: ["الأحد","الإثنين","الثلاثاء","الأربعاء","الخميس","الجمعة","السبت"],
437                                 namesShort: ["ح","ن","ث","ر","خ","ج","س"]
438                         },
439                         months: {
440                                 names: ["جانفييه","فيفرييه","مارس","أفريل","مي","جوان","جوييه","أوت","سبتمبر","اكتوبر","نوفمبر","ديسمبر",""],
441                                 namesAbbr: ["جانفييه","فيفرييه","مارس","أفريل","مي","جوان","جوييه","أوت","سبتمبر","اكتوبر","نوفمبر","ديسمبر",""]
442                         },
443                         AM: ["ص","ص","ص"],
444                         PM: ["م","م","م"],
445                         eras: [{"name":"م","start":null,"offset":0}],
446                         patterns: {
447                                 d: "MM/dd/yyyy",
448                                 t: "hh:mm tt",
449                                 T: "hh:mm:ss tt",
450                                 f: "dddd, MMMM dd, yyyy hh:mm tt",
451                                 F: "dddd, MMMM dd, yyyy hh:mm:ss tt"
452                         }
453                 }
454         }
455 });
456
457 }( this ));