Added arabic localization

This commit is contained in:
Jörn Zaeffferer
2009-11-30 19:27:38 +00:00
parent c28ba85772
commit ae2b301b40
2 changed files with 25 additions and 1 deletions
+1 -1
View File
@@ -1,6 +1,6 @@
1.6
---
* Added Portuguese (PTPT), Persian (FA), Finnish (FI) and Bulgarian (BR) localization
* Added Arabic (AR), Portuguese (PTPT), Persian (FA), Finnish (FI) and Bulgarian (BR) localization
* Updated Swedish (SE) localization (some missing html iso characters)
* Fixed $.validator.addMethod to properly handle empty string vs. undefined for the message argument
* Fixed two accidental global variables
+24
View File
@@ -0,0 +1,24 @@
/*
* Translated default messages for the jQuery validation plugin into arabic.
* Locale: AR
*/
jQuery.extend(jQuery.validator.messages, {
required: "هذا الحقل إلزامي",
remote: "يرجى تصحيح هذا الحقل للمتابعة",
email: "رجاء إدخال عنوان بريد إلكتروني صحيح",
url: "رجاء إدخال عنوان موقع إلكتروني صحيح",
date: "رجاء إدخال تاريخ صحيح",
dateISO: "رجاء إدخال تاريخ صحيح (ISO)",
number: "رجاء إدخال عدد بطريقة صحيحة",
digits: "رجاء إدخال أرقام فقط",
creditcard: "رجاء إدخال رقم بطاقة ائتمان صحيح",
equalTo: "رجاء إدخال نفس القيمة",
accept: "رجاء إدخال ملف بامتداد موافق عليه",
maxlength: jQuery.validator.format("الحد الأقصى لعدد الحروف هو {0}"),
minlength: jQuery.validator.format("الحد الأدنى لعدد الحروف هو {0}"),
rangelength: jQuery.validator.format("عدد الحروف يجب أن يكون بين {0} و {1}"),
range: jQuery.validator.format("رجاء إدخال عدد قيمته بين {0} و {1}"),
max: jQuery.validator.format("رجاء إدخال عدد أقل من أو يساوي (0}"),
min: jQuery.validator.format("رجاء إدخال عدد أكبر من أو يساوي (0}")
});