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