-
-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
add Armenian translations for Select2
- Loading branch information
1 parent
a4d2600
commit 4b11b9f
Showing
1 changed file
with
37 additions
and
0 deletions.
There are no files selected for viewing
37 changes: 37 additions & 0 deletions
37
backend/vendor/assets/javascripts/solidus_admin/select2_locales/select2_locale_hy.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
/** | ||
* Select2 Armenian translation. | ||
* | ||
* @author Arman Harutyunyan <[email protected]> | ||
* @author Siruhi Karakhanyan <[email protected]> | ||
* | ||
*/ | ||
(function($) { | ||
"use strict"; | ||
|
||
$.fn.select2.locales['hy'] = { | ||
formatNoMatches: function() { | ||
return "Համընկնումներ չեն գտնվել"; | ||
}, | ||
formatInputTooShort: function(input, min) { | ||
return "Խնդրում ենք մուտքագրել առնվազն" + character(min - input.length); | ||
}, | ||
formatInputTooLong: function(input, max) { | ||
return "Խնդրում ենք մուտքագրել" + character(input.length - max) + " պակաս"; | ||
}, | ||
formatSelectionTooBig: function(limit) { | ||
return "Դուք կարող եք ընտրել ոչ ավելին" + character(limit); | ||
}, | ||
formatLoadMore: function(pageNumber) { | ||
return "Տվյալների բեռնում…"; | ||
}, | ||
formatSearching: function() { | ||
return "Որոնել…"; | ||
} | ||
}; | ||
|
||
$.extend($.fn.select2.defaults, $.fn.select2.locales['hy']); | ||
|
||
function character(n) { | ||
return " " + n + " խորհրդանիշ"; | ||
} | ||
})(jQuery); |