837715f939
Instead of instantly applying the translations, add them to an array. That way users can include the language files that their site supports and apply the required language using $.extend($.fn.select2.defaults, $.fn.select2.locales["nl"]); Signed-off-by: Kevin Brown <kevin@kevinbrown.in>
18 lines
771 B
JavaScript
18 lines
771 B
JavaScript
/**
|
|
* Select2 Malay translation.
|
|
*
|
|
* Author: Kepoweran <kepoweran@gmail.com>
|
|
*/
|
|
(function ($) {
|
|
"use strict";
|
|
|
|
$.fn.select2.locales['ms'] = {
|
|
formatNoMatches: function () { return "Tiada padanan yang ditemui"; },
|
|
formatInputTooShort: function (input, min) { var n = min - input.length; return "Sila masukkan " + n + " aksara lagi"; },
|
|
formatInputTooLong: function (input, max) { var n = input.length - max; return "Sila hapuskan " + n + " aksara"; },
|
|
formatSelectionTooBig: function (limit) { return "Anda hanya boleh memilih " + limit + " pilihan"; },
|
|
formatLoadMore: function (pageNumber) { return "Sedang memuatkan keputusan…"; },
|
|
formatSearching: function () { return "Mencari…"; }
|
|
});
|
|
})(jQuery);
|