File: /home/jairicem/kunakornthairestaurant.com/assets/config_dumps/s2_lang.js
(function ($) { "use strict"; $.fn.select2.locales['sma'] = { formatMatches: function (matches) { if (matches === 1) { return "{formatMatches_s}"; } return matches + "{formatMatches_p}"; }, formatNoMatches: function () { return "{formatNoMatches}"; }, formatInputTooShort: function (input, min) { var n = min - input.length; return "{formatInputTooShort}"; }, formatInputTooLong: function (input, max) { var n = input.length - max; if(n == 1) { return "{formatInputTooLong_s}"; } else { return "{formatInputTooLong_p}"; } }, formatSelectionTooBig: function (n) { if(n == 1) { return "{formatSelectionTooBig_s}"; } else { return "{formatSelectionTooBig_p}"; } }, formatLoadMore: function (pageNumber) { return "{formatLoadMore}"; }, formatSearching: function () { return "{formatSearching}"; }, formatAjaxError: function() { return "{formatAjaxError}"; }, }; $.extend($.fn.select2.defaults, $.fn.select2.locales['sma']); })(jQuery);