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