From e8a0336894ce8f7f7e8b7f353c2e49589234eed5 Mon Sep 17 00:00:00 2001 From: mantas Date: Mon, 8 Apr 2013 13:12:14 +0300 Subject: [PATCH 1/3] Lithuanian language translation added --- select2_locale_lt.js | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100644 select2_locale_lt.js diff --git a/select2_locale_lt.js b/select2_locale_lt.js new file mode 100644 index 00000000..5d5b4879 --- /dev/null +++ b/select2_locale_lt.js @@ -0,0 +1,28 @@ +/** + * Select2 lithuanian translation. + * + * Author: CRONUS Karmalakas + */ +(function ($) { + "use strict"; + + $.extend($.fn.select2.defaults, { + formatNoMatches: function () { return "Įrašų nerasta"; }, + formatInputTooShort: function (input, min) { + var n = min - input.length; + var suffix = (n % 10 == 1) && (n % 100 != 11)) ? 'į' : (((n % 10 >= 2) && ((n % 100 < 10) || (n % 100 >= 20))) ? 'ius' : 'ių'; + return "Įrašykite dar " + n + " simbol" + suffix; + }, + formatInputTooLong: function (input, max) { + var n = input.length - max; + var suffix = (n % 10 == 1) && (n % 100 != 11)) ? 'į' : (((n % 10 >= 2) && ((n % 100 < 10) || (n % 100 >= 20))) ? 'ius' : 'ių'; + return "Pašalinkite " + n + " simbol" + suffix; + }, + formatSelectionTooBig: function (limit) { + var suffix = (n % 10 == 1) && (n % 100 != 11)) ? 'ą' : (((n % 10 >= 2) && ((n % 100 < 10) || (n % 100 >= 20))) ? 'us' : 'ų'; + return "Jūs galite pasirinkti tik " + limit + " element" + suffix; + }, + formatLoadMore: function (pageNumber) { return "Kraunama daugiau rezultatų..."; }, + formatSearching: function () { return "Ieškoma..."; } + }); +})(jQuery); From b36850644eb6ca92190e57531d8053c3b76fb592 Mon Sep 17 00:00:00 2001 From: mantas Date: Mon, 8 Apr 2013 14:03:03 +0300 Subject: [PATCH 2/3] Fixed lithuanian translation --- select2_locale_lt.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/select2_locale_lt.js b/select2_locale_lt.js index 5d5b4879..104e48b5 100644 --- a/select2_locale_lt.js +++ b/select2_locale_lt.js @@ -7,19 +7,19 @@ "use strict"; $.extend($.fn.select2.defaults, { - formatNoMatches: function () { return "Įrašų nerasta"; }, + formatNoMatches: function () { return "Atitikmenų nerasta"; }, formatInputTooShort: function (input, min) { var n = min - input.length; - var suffix = (n % 10 == 1) && (n % 100 != 11)) ? 'į' : (((n % 10 >= 2) && ((n % 100 < 10) || (n % 100 >= 20))) ? 'ius' : 'ių'; + var suffix = (n % 10 == 1) && (n % 100 != 11) ? 'į' : (((n % 10 >= 2) && ((n % 100 < 10) || (n % 100 >= 20))) ? 'ius' : 'ių'); return "Įrašykite dar " + n + " simbol" + suffix; }, formatInputTooLong: function (input, max) { var n = input.length - max; - var suffix = (n % 10 == 1) && (n % 100 != 11)) ? 'į' : (((n % 10 >= 2) && ((n % 100 < 10) || (n % 100 >= 20))) ? 'ius' : 'ių'; + var suffix = (n % 10 == 1) && (n % 100 != 11) ? 'į' : (((n % 10 >= 2) && ((n % 100 < 10) || (n % 100 >= 20))) ? 'ius' : 'ių'); return "Pašalinkite " + n + " simbol" + suffix; }, formatSelectionTooBig: function (limit) { - var suffix = (n % 10 == 1) && (n % 100 != 11)) ? 'ą' : (((n % 10 >= 2) && ((n % 100 < 10) || (n % 100 >= 20))) ? 'us' : 'ų'; + var suffix = (n % 10 == 1) && (n % 100 != 11) ? 'ą' : (((n % 10 >= 2) && ((n % 100 < 10) || (n % 100 >= 20))) ? 'us' : 'ų'); return "Jūs galite pasirinkti tik " + limit + " element" + suffix; }, formatLoadMore: function (pageNumber) { return "Kraunama daugiau rezultatų..."; }, From 266b16861323d11aa059e755d38ebaaee2a64364 Mon Sep 17 00:00:00 2001 From: mantas Date: Mon, 8 Apr 2013 15:03:22 +0300 Subject: [PATCH 3/3] Email changed --- select2_locale_lt.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/select2_locale_lt.js b/select2_locale_lt.js index 104e48b5..6a26b1a5 100644 --- a/select2_locale_lt.js +++ b/select2_locale_lt.js @@ -1,7 +1,7 @@ /** * Select2 lithuanian translation. * - * Author: CRONUS Karmalakas + * Author: CRONUS Karmalakas */ (function ($) { "use strict";