You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+19-4Lines changed: 19 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -24,6 +24,10 @@ Browser compatibility
24
24
* Firefox 10+
25
25
* Safari 3+
26
26
* Opera 10.6+
27
+
28
+
Usage
29
+
-----
30
+
You can source Select2 directly from a [CDN like JSDliver](http://www.jsdelivr.com/#!select2), [download it from this GitHub repo](https://github.com/ivaynberg/select2/tags), or use one of the integrations below.
Copy file name to clipboardExpand all lines: select2_locale_ar.js
+4-2Lines changed: 4 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -6,12 +6,14 @@
6
6
(function($){
7
7
"use strict";
8
8
9
-
$.extend($.fn.select2.defaults,{
9
+
$.fn.select2.locales['ar']={
10
10
formatNoMatches: function(){return"لم يتم العثور على مطابقات";},
11
11
formatInputTooShort: function(input,min){varn=min-input.length;if(n==1){return"الرجاء إدخال حرف واحد على الأكثر";}returnn==2 ? "الرجاء إدخال حرفين على الأكثر" : "الرجاء إدخال "+n+" على الأكثر";},
12
12
formatInputTooLong: function(input,max){varn=input.length-max;if(n==1){return"الرجاء إدخال حرف واحد على الأقل";}returnn==2 ? "الرجاء إدخال حرفين على الأقل" : "الرجاء إدخال "+n+" على الأقل ";},
13
13
formatSelectionTooBig: function(limit){if(n==1){return"يمكنك أن تختار إختيار واحد فقط";}returnn==2 ? "يمكنك أن تختار إختيارين فقط" : "يمكنك أن تختار "+n+" إختيارات فقط";},
14
14
formatLoadMore: function(pageNumber){return"تحميل المزيد من النتائج…";},
0 commit comments