2 * Globalize Culture ar-EG
4 * http://github.com/jquery/globalize
6 * Copyright Software Freedom Conservancy, Inc.
7 * Dual licensed under the MIT or GPL Version 2 licenses.
8 * http://jquery.org/license
10 * This file was generated by the Globalize Culture Generator
11 * Translation: bugs found in this file need to be fixed in the generator
14 (function( window, undefined ) {
18 if ( typeof require !== "undefined"
19 && typeof exports !== "undefined"
20 && typeof module !== "undefined" ) {
22 Globalize = require( "globalize" );
25 Globalize = window.Globalize;
28 Globalize.addCultureInfo( "ar-EG", "default", {
30 englishName: "Arabic (Egypt)",
31 nativeName: "العربية (مصر)",
38 negativeInfinity: "-لا نهاية",
39 positiveInfinity: "+لا نهاية",
44 pattern: ["$n-","$ n"],
52 names: ["الأحد","الإثنين","الثلاثاء","الأربعاء","الخميس","الجمعة","السبت"],
53 namesAbbr: ["الأحد","الإثنين","الثلاثاء","الأربعاء","الخميس","الجمعة","السبت"],
54 namesShort: ["ح","ن","ث","ر","خ","ج","س"]
57 names: ["يناير","فبراير","مارس","أبريل","مايو","يونيو","يوليو","أغسطس","سبتمبر","أكتوبر","نوفمبر","ديسمبر",""],
58 namesAbbr: ["يناير","فبراير","مارس","أبريل","مايو","يونيو","يوليو","أغسطس","سبتمبر","أكتوبر","نوفمبر","ديسمبر",""]
67 f: "dd MMMM, yyyy hh:mm tt",
68 F: "dd MMMM, yyyy hh:mm:ss tt",
76 names: ["الأحد","الإثنين","الثلاثاء","الأربعاء","الخميس","الجمعة","السبت"],
77 namesAbbr: ["الأحد","الإثنين","الثلاثاء","الأربعاء","الخميس","الجمعة","السبت"],
78 namesShort: ["ح","ن","ث","ر","خ","ج","س"]
81 names: ["محرم","صفر","ربيع الأول","ربيع الثاني","جمادى الأولى","جمادى الثانية","رجب","شعبان","رمضان","شوال","ذو القعدة","ذو الحجة",""],
82 namesAbbr: ["محرم","صفر","ربيع الأول","ربيع الثاني","جمادى الأولى","جمادى الثانية","رجب","شعبان","رمضان","شوال","ذو القعدة","ذو الحجة",""]
86 eras: [{"name":"بعد الهجرة","start":null,"offset":0}],
87 twoDigitYearMax: 1451,
93 f: "dd/MMMM/yyyy hh:mm tt",
94 F: "dd/MMMM/yyyy hh:mm:ss tt",
99 // MonthLengthFlags, Gregorian Date
100 [746, -2198707200000],
101 [1769, -2168121600000],
102 [3794, -2137449600000],
103 [3748, -2106777600000],
104 [3402, -2076192000000],
105 [2710, -2045606400000],
106 [1334, -2015020800000],
107 [2741, -1984435200000],
108 [3498, -1953763200000],
109 [2980, -1923091200000],
110 [2889, -1892505600000],
111 [2707, -1861920000000],
112 [1323, -1831334400000],
113 [2647, -1800748800000],
114 [1206, -1770076800000],
115 [2741, -1739491200000],
116 [1450, -1708819200000],
117 [3413, -1678233600000],
118 [3370, -1647561600000],
119 [2646, -1616976000000],
120 [1198, -1586390400000],
121 [2397, -1555804800000],
122 [748, -1525132800000],
123 [1749, -1494547200000],
124 [1706, -1463875200000],
125 [1365, -1433289600000],
126 [1195, -1402704000000],
127 [2395, -1372118400000],
128 [698, -1341446400000],
129 [1397, -1310860800000],
130 [2994, -1280188800000],
131 [1892, -1249516800000],
132 [1865, -1218931200000],
133 [1621, -1188345600000],
134 [683, -1157760000000],
135 [1371, -1127174400000],
136 [2778, -1096502400000],
137 [1748, -1065830400000],
138 [3785, -1035244800000],
139 [3474, -1004572800000],
140 [3365, -973987200000],
141 [2637, -943401600000],
142 [685, -912816000000],
143 [1389, -882230400000],
144 [2922, -851558400000],
145 [2898, -820886400000],
146 [2725, -790300800000],
147 [2635, -759715200000],
148 [1175, -729129600000],
149 [2359, -698544000000],
150 [694, -667872000000],
151 [1397, -637286400000],
152 [3434, -606614400000],
153 [3410, -575942400000],
154 [2710, -545356800000],
155 [2349, -514771200000],
156 [605, -484185600000],
157 [1245, -453600000000],
158 [2778, -422928000000],
159 [1492, -392256000000],
160 [3497, -361670400000],
161 [3410, -330998400000],
162 [2730, -300412800000],
163 [1238, -269827200000],
164 [2486, -239241600000],
165 [884, -208569600000],
166 [1897, -177984000000],
167 [1874, -147312000000],
168 [1701, -116726400000],
169 [1355, -86140800000],
170 [2731, -55555200000],
171 [1370, -24883200000],
176 [2709, 128217600000],
177 [1325, 158803200000],
178 [2653, 189388800000],
179 [1370, 220060800000],
180 [2773, 250646400000],
181 [1706, 281318400000],
182 [1685, 311904000000],
183 [1323, 342489600000],
184 [2647, 373075200000],
185 [1198, 403747200000],
186 [2422, 434332800000],
187 [1388, 465004800000],
188 [2901, 495590400000],
189 [2730, 526262400000],
190 [2645, 556848000000],
191 [1197, 587433600000],
192 [2397, 618019200000],
194 [1497, 679276800000],
195 [3506, 709948800000],
196 [2980, 740620800000],
197 [2890, 771206400000],
198 [2645, 801792000000],
200 [1397, 862963200000],
201 [2922, 893635200000],
202 [3026, 924307200000],
203 [3012, 954979200000],
204 [2953, 985564800000],
205 [2709, 1016150400000],
206 [1325, 1046736000000],
207 [1453, 1077321600000],
208 [2922, 1107993600000],
209 [1748, 1138665600000],
210 [3529, 1169251200000],
211 [3474, 1199923200000],
212 [2726, 1230508800000],
213 [2390, 1261094400000],
214 [686, 1291680000000],
215 [1389, 1322265600000],
216 [874, 1352937600000],
217 [2901, 1383523200000],
218 [2730, 1414195200000],
219 [2381, 1444780800000],
220 [1181, 1475366400000],
221 [2397, 1505952000000],
222 [698, 1536624000000],
223 [1461, 1567209600000],
224 [1450, 1597881600000],
225 [3413, 1628467200000],
226 [2714, 1659139200000],
227 [2350, 1689724800000],
228 [622, 1720310400000],
229 [1373, 1750896000000],
230 [2778, 1781568000000],
231 [1748, 1812240000000],
232 [1701, 1842825600000],
235 minDate: -2198707200000,
236 maxDate: 1873411199999,
237 toGregorian: function(hyear, hmonth, hday) {
239 gyear = hyear - 1318;
240 if (gyear < 0 || gyear >= this._yearInfo.length) return null;
241 var info = this._yearInfo[gyear],
242 gdate = new Date(info[1]),
243 monthLength = info[0];
244 // Date's ticks in javascript are always from the GMT time,
245 // but we are interested in the gregorian date in the same timezone,
246 // not what the gregorian date was at GMT time, so we adjust for the offset.
247 gdate.setMinutes(gdate.getMinutes() + gdate.getTimezoneOffset());
248 for (var i = 0; i < hmonth; i++) {
249 days += 29 + (monthLength & 1);
250 monthLength = monthLength >> 1;
252 gdate.setDate(gdate.getDate() + days);
255 fromGregorian: function(gdate) {
256 // Date's ticks in javascript are always from the GMT time,
257 // but we are interested in the hijri date in the same timezone,
258 // not what the hijri date was at GMT time, so we adjust for the offset.
259 var ticks = gdate - gdate.getTimezoneOffset() * 60000;
260 if (ticks < this.minDate || ticks > this.maxDate) return null;
263 // find the earliest gregorian date in the array that is greater than or equal to the given date
264 while (ticks > this._yearInfo[++hyear][1]) { }
265 if (ticks !== this._yearInfo[hyear][1]) {
268 var info = this._yearInfo[hyear],
269 // how many days has it been since the date we found in the array?
270 // 86400000 = ticks per day
271 days = Math.floor((ticks - info[1]) / 86400000),
272 monthLength = info[0];
273 hyear += 1318; // the Nth array entry corresponds to hijri year 1318+N
274 // now increment day/month based on the total days, considering
275 // how many days are in each month. We cannot run past the year
276 // mark since we would have found a different array entry in that case.
277 var daysInMonth = 29 + (monthLength & 1);
278 while (days >= daysInMonth) {
280 monthLength = monthLength >> 1;
281 daysInMonth = 29 + (monthLength & 1);
284 // remaining days is less than is in one month, thus is the day of the month we landed on
285 // hmonth-1 because in javascript months are zero based, stay consistent with that.
286 return [hyear, hmonth - 1, days + 1];
290 Gregorian_TransliteratedEnglish: {
291 name: "Gregorian_TransliteratedEnglish",
294 names: ["الأحد","الإثنين","الثلاثاء","الأربعاء","الخميس","الجمعة","السبت"],
295 namesAbbr: ["الأحد","الإثنين","الثلاثاء","الأربعاء","الخميس","الجمعة","السبت"],
296 namesShort: ["أ","ا","ث","أ","خ","ج","س"]
299 names: ["يناير","فبراير","مارس","أبريل","مايو","يونيو","يوليو","أغسطس","سبتمبر","أكتوبر","نوفمبر","ديسمبر",""],
300 namesAbbr: ["يناير","فبراير","مارس","ابريل","مايو","يونيو","يوليو","اغسطس","سبتمبر","اكتوبر","نوفمبر","ديسمبر",""]
304 eras: [{"name":"م","start":null,"offset":0}],
309 f: "dddd, MMMM dd, yyyy hh:mm tt",
310 F: "dddd, MMMM dd, yyyy hh:mm:ss tt"
317 names: ["الأحد","الإثنين","الثلاثاء","الأربعاء","الخميس","الجمعة","السبت"],
318 namesAbbr: ["الأحد","الإثنين","الثلاثاء","الأربعاء","الخميس","الجمعة","السبت"],
319 namesShort: ["ح","ن","ث","ر","خ","ج","س"]
322 names: ["محرم","صفر","ربيع الأول","ربيع الثاني","جمادى الأولى","جمادى الثانية","رجب","شعبان","رمضان","شوال","ذو القعدة","ذو الحجة",""],
323 namesAbbr: ["محرم","صفر","ربيع الأول","ربيع الثاني","جمادى الأولى","جمادى الثانية","رجب","شعبان","رمضان","شوال","ذو القعدة","ذو الحجة",""]
327 eras: [{"name":"بعد الهجرة","start":null,"offset":0}],
328 twoDigitYearMax: 1451,
334 f: "dd/MM/yyyy hh:mm tt",
335 F: "dd/MM/yyyy hh:mm:ss tt",
339 // Adapted to Script from System.Globalization.HijriCalendar
340 ticks1970: 62135596800000,
341 // number of days leading up to each month
342 monthDays: [0, 30, 59, 89, 118, 148, 177, 207, 236, 266, 295, 325, 355],
343 minDate: -42521673600000,
344 maxDate: 253402300799999,
345 // The number of days to add or subtract from the calendar to accommodate the variances
346 // in the start and the end of Ramadan and to accommodate the date difference between
347 // countries/regions. May be dynamically adjusted based on user preference, but should
348 // remain in the range of -2 to 2, inclusive.
350 toGregorian: function(hyear, hmonth, hday) {
351 var daysSinceJan0101 = this.daysToYear(hyear) + this.monthDays[hmonth] + hday - 1 - this.hijriAdjustment;
352 // 86400000 = ticks per day
353 var gdate = new Date(daysSinceJan0101 * 86400000 - this.ticks1970);
354 // adjust for timezone, because we are interested in the gregorian date for the same timezone
355 // but ticks in javascript is always from GMT, unlike the server were ticks counts from the base
356 // date in the current timezone.
357 gdate.setMinutes(gdate.getMinutes() + gdate.getTimezoneOffset());
360 fromGregorian: function(gdate) {
361 if ((gdate < this.minDate) || (gdate > this.maxDate)) return null;
362 var ticks = this.ticks1970 + (gdate-0) - gdate.getTimezoneOffset() * 60000,
363 daysSinceJan0101 = Math.floor(ticks / 86400000) + 1 + this.hijriAdjustment;
364 // very particular formula determined by someone smart, adapted from the server-side implementation.
365 // it approximates the hijri year.
366 var hday, hmonth, hyear = Math.floor(((daysSinceJan0101 - 227013) * 30) / 10631) + 1,
367 absDays = this.daysToYear(hyear),
368 daysInYear = this.isLeapYear(hyear) ? 355 : 354;
369 // hyear is just approximate, it may need adjustment up or down by 1.
370 if (daysSinceJan0101 < absDays) {
372 absDays -= daysInYear;
374 else if (daysSinceJan0101 === absDays) {
376 absDays = this.daysToYear(hyear);
379 if (daysSinceJan0101 > (absDays + daysInYear)) {
380 absDays += daysInYear;
384 // determine month by looking at how many days into the hyear we are
385 // monthDays contains the number of days up to each month.
387 var daysIntoYear = daysSinceJan0101 - absDays;
388 while (hmonth <= 11 && daysIntoYear > this.monthDays[hmonth]) {
392 hday = daysIntoYear - this.monthDays[hmonth];
393 return [hyear, hmonth, hday];
395 daysToYear: function(year) {
396 // calculates how many days since Jan 1, 0001
397 var yearsToYear30 = Math.floor((year - 1) / 30) * 30,
398 yearsInto30 = year - yearsToYear30 - 1,
399 days = Math.floor((yearsToYear30 * 10631) / 30) + 227013;
400 while (yearsInto30 > 0) {
401 days += (this.isLeapYear(yearsInto30) ? 355 : 354);
406 isLeapYear: function(year) {
407 return ((((year * 11) + 14) % 30) < 11);
411 Gregorian_MiddleEastFrench: {
412 name: "Gregorian_MiddleEastFrench",
415 names: ["dimanche","lundi","mardi","mercredi","jeudi","vendredi","samedi"],
416 namesAbbr: ["dim.","lun.","mar.","mer.","jeu.","ven.","sam."],
417 namesShort: ["di","lu","ma","me","je","ve","sa"]
420 names: ["janvier","février","mars","avril","mai","juin","juillet","août","septembre","octobre","novembre","décembre",""],
421 namesAbbr: ["janv.","févr.","mars","avr.","mai","juin","juil.","août","sept.","oct.","nov.","déc.",""]
425 eras: [{"name":"ap. J.-C.","start":null,"offset":0}],
430 f: "dddd, MMMM dd, yyyy hh:mm tt",
431 F: "dddd, MMMM dd, yyyy hh:mm:ss tt",
436 name: "Gregorian_Arabic",
439 names: ["الأحد","الإثنين","الثلاثاء","الأربعاء","الخميس","الجمعة","السبت"],
440 namesAbbr: ["الأحد","الإثنين","الثلاثاء","الأربعاء","الخميس","الجمعة","السبت"],
441 namesShort: ["ح","ن","ث","ر","خ","ج","س"]
444 names: ["كانون الثاني","شباط","آذار","نيسان","أيار","حزيران","تموز","آب","أيلول","تشرين الأول","تشرين الثاني","كانون الأول",""],
445 namesAbbr: ["كانون الثاني","شباط","آذار","نيسان","أيار","حزيران","تموز","آب","أيلول","تشرين الأول","تشرين الثاني","كانون الأول",""]
449 eras: [{"name":"م","start":null,"offset":0}],
454 f: "dddd, MMMM dd, yyyy hh:mm tt",
455 F: "dddd, MMMM dd, yyyy hh:mm:ss tt"
458 Gregorian_TransliteratedFrench: {
459 name: "Gregorian_TransliteratedFrench",
462 names: ["الأحد","الإثنين","الثلاثاء","الأربعاء","الخميس","الجمعة","السبت"],
463 namesAbbr: ["الأحد","الإثنين","الثلاثاء","الأربعاء","الخميس","الجمعة","السبت"],
464 namesShort: ["ح","ن","ث","ر","خ","ج","س"]
467 names: ["جانفييه","فيفرييه","مارس","أفريل","مي","جوان","جوييه","أوت","سبتمبر","اكتوبر","نوفمبر","ديسمبر",""],
468 namesAbbr: ["جانفييه","فيفرييه","مارس","أفريل","مي","جوان","جوييه","أوت","سبتمبر","اكتوبر","نوفمبر","ديسمبر",""]
472 eras: [{"name":"م","start":null,"offset":0}],
477 f: "dddd, MMMM dd, yyyy hh:mm tt",
478 F: "dddd, MMMM dd, yyyy hh:mm:ss tt"