From de5fe02f5ece3e1a7da4eee61655e2388077e492 Mon Sep 17 00:00:00 2001 From: od3n Date: Sat, 11 Oct 2014 10:32:31 +0800 Subject: [PATCH 1/2] updated Malay translation --- select2_locale_ms.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/select2_locale_ms.js b/select2_locale_ms.js index 46588d6d..6447c089 100644 --- a/select2_locale_ms.js +++ b/select2_locale_ms.js @@ -2,11 +2,13 @@ * Select2 Malay translation. * * Author: Kepoweran + * Author: Salahuddin Hairai */ (function ($) { "use strict"; $.fn.select2.locales['ms'] = { + formatMatches: function (matches) { if (matches === 1) { return "Satu keputusan ditemui, tekan enter untuk memilih."; } return matches + " keputusan ditemui, gunakan kekunci anak panah ke atas dan ke bawah untuk menavigasi."; }, 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"; }, From 2afc930a12f266d2eb0070ec69017478cdcd3a8c Mon Sep 17 00:00:00 2001 From: od3n Date: Sat, 11 Oct 2014 10:33:22 +0800 Subject: [PATCH 2/2] updated Indonesian translation --- select2_locale_id.js | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/select2_locale_id.js b/select2_locale_id.js index e9c1fd9b..e7ea0ac6 100644 --- a/select2_locale_id.js +++ b/select2_locale_id.js @@ -2,15 +2,17 @@ * Select2 Indonesian translation. * * Author: Ibrahim Yusuf + * Author: Salahuddin Hairai */ (function ($) { "use strict"; $.fn.select2.locales['id'] = { + formatMatches: function (matches) { if (matches === 1) { return "Satu keputusan ditemui, tekan enter untuk memilih."; } return matches + " keputusan ditemui, gunakan kekunci anak panah ke atas dan ke bawah untuk menavigasi."; }, 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"); }, + formatInputTooShort: function (input, min) { var n = min - input.length; return "Masukkan " + n + " huruf lagi"; }, + formatInputTooLong: function (input, max) { var n = input.length - max; return "Hapuskan " + n + " huruf" ; }, + formatSelectionTooBig: function (limit) { return "Anda hanya dapat memilih " + limit + " pilihan"; }, formatLoadMore: function (pageNumber) { return "Mengambil data…"; }, formatSearching: function () { return "Mencari…"; } };