issue 21567: Date selectors are not working in
authorJavier Etxarri <javier.echarri@openbravo.com>
Fri, 14 Sep 2012 10:32:48 +0200
changeset 17949 5fab9bcac0ac
parent 17948 ed8fe55b2a08
child 17950 ff5cd7b10163
issue 21567: Date selectors are not working in
'Trial Balance Report' with 'Openbravo 3.0 Translation Pack Arabic'
web/js/jscalendar/calendar.js
web/js/jscalendar/lang/calendar-ar.js
--- a/web/js/jscalendar/calendar.js	Mon May 21 10:44:36 2012 +0200
+++ b/web/js/jscalendar/calendar.js	Fri Sep 14 10:32:48 2012 +0200
@@ -40,7 +40,7 @@
 	this.ttDateFormat = Calendar._TT["TT_DATE_FORMAT"];
 	this.isPopup = true;
 	this.weekNumbers = true;
-	this.firstDayOfWeek = typeof firstDayOfWeek == "number" ? firstDayOfWeek : Calendar._FD; // 0 for Sunday, 1 for Monday, etc.
+	this.firstDayOfWeek = typeof Calendar._FD == "number" ? Calendar._FD : firstDayOfWeek; // 0 for Sunday, 1 for Monday, etc.
 	this.showsOtherMonths = false;
 	this.dateStr = dateStr;
 	this.ar_days = null;
--- a/web/js/jscalendar/lang/calendar-ar.js	Mon May 21 10:44:36 2012 +0200
+++ b/web/js/jscalendar/lang/calendar-ar.js	Fri Sep 14 10:32:48 2012 +0200
@@ -1,4 +1,4 @@
-// ** I18N
+// ** I18N
 
 // Calendar EN language
 // Author: Mihai Bazon, <mihai_bazon@yahoo.com>
@@ -11,14 +11,14 @@
 
 // full day names
 Calendar._DN = new Array
-("Sunday",
- "Monday",
- "Tuesday",
- "Wednesday",
- "Thursday",
- "Friday",
- "Saturday",
- "Sunday");
+("الأحد",
+ "الإثنين",
+ "الثلاثاء",
+ "الأربعاء",
+ "الخميس",
+ "الجمعة",
+ "السبت",
+ "الأحد");
 
 // Please note that the following array of short day names (and the same goes
 // for short month names, _SMN) isn't absolutely necessary.  We give it here
@@ -34,94 +34,94 @@
 
 // short day names
 Calendar._SDN = new Array
-("Sun",
- "Mon",
- "Tue",
- "Wed",
- "Thu",
- "Fri",
- "Sat",
- "Sun");
+("الأحد",
+ "الإثنين",
+ "الثلاثاء",
+ "الأربعاء",
+ "الخميس",
+ "الجمعة",
+ "السبت",
+ "الأحد");
 
 // First day of the week. "0" means display Sunday first, "1" means display
 // Monday first, etc.
-Calendar._FD = 0;
+Calendar._FD = 6;
 
 // full month names
 Calendar._MN = new Array
-("January",
- "February",
- "March",
- "April",
- "May",
- "June",
- "July",
- "August",
- "September",
- "October",
- "November",
- "December");
+("يناير",
+ "فبراير",
+ "مارس",
+ "أبريل",
+ "مايو",
+ "يونيو",
+ "يوليو",
+ "أغسطس",
+ "سبتمبر",
+ "أكتوبر",
+ "نوفمبر",
+ "ديسمبر");
 
 // short month names
 Calendar._SMN = new Array
-("Jan",
- "Feb",
- "Mar",
- "Apr",
- "May",
- "Jun",
- "Jul",
- "Aug",
- "Sep",
- "Oct",
- "Nov",
- "Dec");
+("يناير",
+ "فبراير",
+ "مارس",
+ "أبريل",
+ "مايو",
+ "يونيو",
+ "يوليو",
+ "أغسطس",
+ "سبتمبر",
+ "أكتوبر",
+ "نوفمبر",
+ "ديسمبر");
+// tooltips
 
-// tooltips
 Calendar._TT = {};
-Calendar._TT["INFO"] = "About the calendar";
+Calendar._TT["INFO"] = "عن التقويم";
 
 Calendar._TT["ABOUT"] =
-"DHTML Date/Time Selector\n" +
+"منتقي الوقت /التاريخ\n" +
 "(c) dynarch.com 2002-2005 / Author: Mihai Bazon\n" + // don't translate this this ;-)
-"For latest version visit: http://www.dynarch.com/projects/calendar/\n" +
-"Distributed under GNU LGPL.  See http://gnu.org/licenses/lgpl.html for details." +
+"للحصول على أحدث إصدار قم بزيارة: http://www.dynarch.com/projects/calendar/\n" +
+"رخصة الاستخدام GNU LGPL.  انظر http://gnu.org/licenses/lgpl.html لمزيد من المعلومات." +
 "\n\n" +
-"Date selection:\n" +
-"- Use the \xab, \xbb buttons to select year\n" +
-"- Use the " + String.fromCharCode(0x2039) + ", " + String.fromCharCode(0x203a) + " buttons to select month\n" +
-"- Hold mouse button on any of the above buttons for faster selection.";
+"اختر التاريخ:\n" +
+"- استخدم مفتاحي \xab ، \xbb لإختيار السنة\n" +
+"- استخدم مفتاحي " + String.fromCharCode(0x2039) + ", " + String.fromCharCode(0x203a) + " لإختيار الشهر\n" +
+"- قم بضغط زر الفأرة على أي من المفاتيح العليا للإختيار السريع. ";
 Calendar._TT["ABOUT_TIME"] = "\n\n" +
-"Time selection:\n" +
-"- Click on any of the time parts to increase it\n" +
-"- or Shift-click to decrease it\n" +
-"- or click and drag for faster selection.";
+"اختيار التاريخ:\n" +
+"- إضغط على أي جزء من الوقت لزيادتة\n" +
+"- أو قم بالنقر مع مفتاح شيفت لإنقاصه \n" +
+"- أو انقر واسحب للإختيار السريع.";
 
-Calendar._TT["PREV_YEAR"] = "Prev. year (hold for menu)";
-Calendar._TT["PREV_MONTH"] = "Prev. month (hold for menu)";
-Calendar._TT["GO_TODAY"] = "Go Today";
-Calendar._TT["NEXT_MONTH"] = "Next month (hold for menu)";
-Calendar._TT["NEXT_YEAR"] = "Next year (hold for menu)";
-Calendar._TT["SEL_DATE"] = "Select date";
-Calendar._TT["DRAG_TO_MOVE"] = "Drag to move";
-Calendar._TT["PART_TODAY"] = " (today)";
+Calendar._TT["PREV_YEAR"] = "العام السابق (اضغط لعرض التقويم)";
+Calendar._TT["PREV_MONTH"] ="الشهر السابق (اضغط لعرض التقويم)";
+Calendar._TT["GO_TODAY"] = "اليوم";
+Calendar._TT["NEXT_MONTH"] = "الشهر التالي (اضغط لعرض التقويم)";
+Calendar._TT["NEXT_YEAR"] = " العام التالي (اضغط لعرض التقويم)";
+Calendar._TT["SEL_DATE"] = "اختر التاريخ";
+Calendar._TT["DRAG_TO_MOVE"] = "اسحب للنقل";
+Calendar._TT["PART_TODAY"] = " اليوم";
 
 // the following is to inform that "%s" is to be the first day of week
 // %s will be replaced with the day name.
-Calendar._TT["DAY_FIRST"] = "Display %s first";
+Calendar._TT["DAY_FIRST"] = "اعرض يوم %s أولا";
 
 // This may be locale-dependent.  It specifies the week-end days, as an array
 // of comma-separated numbers.  The numbers are from 0 to 6: 0 means Sunday, 1
 // means Monday, etc.
 Calendar._TT["WEEKEND"] = "0,6";
 
-Calendar._TT["CLOSE"] = "Close";
-Calendar._TT["TODAY"] = "Today";
-Calendar._TT["TIME_PART"] = "(Shift-)Click or drag to change value";
+Calendar._TT["CLOSE"] = "إغلاق";
+Calendar._TT["TODAY"] = "اليوم";
+Calendar._TT["TIME_PART"] = "اضغط مفتاح (Shift) مع النقر او السحب لتغيير القيمة";
 
 // date formats
 Calendar._TT["DEF_DATE_FORMAT"] = "%Y-%m-%d";
 Calendar._TT["TT_DATE_FORMAT"] = "%a, %b %e";
 
-Calendar._TT["WK"] = "wk";
-Calendar._TT["TIME"] = "Time:";
+Calendar._TT["WK"] = "الاسبوع";
+Calendar._TT["TIME"] = "الوقت:";
\ No newline at end of file