From 75a062fc0fcbf090d03e7c1a640f27560c5fbd62 Mon Sep 17 00:00:00 2001 From: Ahmed Medhat Othman Date: Tue, 28 May 2013 17:49:45 +0200 Subject: [PATCH] Adding Arabic locale file Signed-off-by: Igor Vaynberg --- select2_locale_ar.js | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 select2_locale_ar.js diff --git a/select2_locale_ar.js b/select2_locale_ar.js new file mode 100644 index 00000000..5ce01063 --- /dev/null +++ b/select2_locale_ar.js @@ -0,0 +1,17 @@ +/** + * Select2 Arabic translation. + * + * Author: Your Name + */ +(function ($) { + "use strict"; + + $.extend($.fn.select2.defaults, { + formatNoMatches: function () { return "لا توجد نتائج"; }, + formatInputTooShort: function (input, min) { var n = min - input.length; return "من فضلك أدخل " + n + " حروف أكثر"; }, + formatInputTooLong: function (input, max) { var n = input.length - max; return "من فضلك أحذف " + n + " حروف"; }, + formatSelectionTooBig: function (limit) { return "يمكنك ان تختار " + limit + " أختيارات فقط"; }, + formatLoadMore: function (pageNumber) { return "تحمل المذيد من النتائج ..."; }, + formatSearching: function () { return "جاري البحث ..."; } + }); +})(jQuery);