From 5d561bdfe6c93070afffa68632a0915df99fb18e Mon Sep 17 00:00:00 2001 From: imjooseo Date: Sat, 22 Jun 2013 01:56:54 +0700 Subject: [PATCH] Added Indonesian translation --- select2_locale_id.js | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 select2_locale_id.js diff --git a/select2_locale_id.js b/select2_locale_id.js new file mode 100644 index 00000000..59a896ac --- /dev/null +++ b/select2_locale_id.js @@ -0,0 +1,17 @@ +/** + * Select2 Indonesian translation. + * + * Author: Ibrahim Yusuf + */ +(function ($) { + "use strict"; + + $.extend($.fn.select2.defaults, { + formatNoMatches: function () { return "Tidak ada data yang sesuai"; }, + formatInputTooShort: function (input, min) { var n = min - input.length; return "Masukkan " + n + " huruf lagi" + (n == 1 ? "" : "s"); }, + formatInputTooLong: function (input, max) { var n = input.length - max; return "Hapus " + n + " huruf" + (n == 1 ? "" : "s"); }, + formatSelectionTooBig: function (limit) { return "Anda hanya dapat memilih " + limit + " pilihan" + (limit == 1 ? "" : "s"); }, + formatLoadMore: function (pageNumber) { return "Mengambil data..."; }, + formatSearching: function () { return "Mencari..."; } + }); +})(jQuery);