From 6695f88b700f72f08c7f86c8994fee9e02050458 Mon Sep 17 00:00:00 2001 From: boyaq Date: Fri, 11 Jul 2014 18:53:23 +0800 Subject: [PATCH 1/3] added Uyghur translation --- select2_locale.ug_CN.js | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 select2_locale.ug_CN.js diff --git a/select2_locale.ug_CN.js b/select2_locale.ug_CN.js new file mode 100644 index 00000000..9e08f2df --- /dev/null +++ b/select2_locale.ug_CN.js @@ -0,0 +1,14 @@ +/** + * Select2 Uyghur translation + */ +(function ($) { + "use strict"; + $.extend($.fn.select2.defaults, { + formatNoMatches: function () { return "ماس كېلىدىغان ئۇچۇر تېپىلمىدى"; }, + formatInputTooShort: function (input, min) { var n = min - input.length; return "يەنە " + n + " ھەرپ كىرگۈزۈڭ";}, + formatInputTooLong: function (input, max) { var n = input.length - max; return "" + n + "ھەرپ ئۆچۈرۈڭ";}, + formatSelectionTooBig: function (limit) { return "ئەڭ كۆپ بولغاندا" + limit + " تال ئۇچۇر تاللىيالايسىز"; }, + formatLoadMore: function (pageNumber) { return "ئۇچۇرلار ئوقۇلىۋاتىدۇ…"; }, + formatSearching: function () { return "ئىزدەۋاتىدۇ…"; } + }); +})(jQuery); \ No newline at end of file From d8a9f697fb9df79d251b83528e4cb9c8be3446e0 Mon Sep 17 00:00:00 2001 From: boyaq Date: Fri, 11 Jul 2014 18:54:33 +0800 Subject: [PATCH 2/3] added Uyghur translation --- select2_locale.ug_CN.js => select2_locale_ug-CN.js | 0 1 file changed, 0 insertions(+), 0 deletions(-) rename select2_locale.ug_CN.js => select2_locale_ug-CN.js (100%) diff --git a/select2_locale.ug_CN.js b/select2_locale_ug-CN.js similarity index 100% rename from select2_locale.ug_CN.js rename to select2_locale_ug-CN.js From f330cb2124c76fc6e84fb327aa414c045f271cd6 Mon Sep 17 00:00:00 2001 From: boyaq Date: Fri, 11 Jul 2014 19:02:57 +0800 Subject: [PATCH 3/3] Changed Uyghur translation --- select2_locale_ug-CN.js | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/select2_locale_ug-CN.js b/select2_locale_ug-CN.js index 9e08f2df..579588a7 100644 --- a/select2_locale_ug-CN.js +++ b/select2_locale_ug-CN.js @@ -3,12 +3,14 @@ */ (function ($) { "use strict"; - $.extend($.fn.select2.defaults, { + $.fn.select2.locales['ug-CN'] = { formatNoMatches: function () { return "ماس كېلىدىغان ئۇچۇر تېپىلمىدى"; }, formatInputTooShort: function (input, min) { var n = min - input.length; return "يەنە " + n + " ھەرپ كىرگۈزۈڭ";}, formatInputTooLong: function (input, max) { var n = input.length - max; return "" + n + "ھەرپ ئۆچۈرۈڭ";}, formatSelectionTooBig: function (limit) { return "ئەڭ كۆپ بولغاندا" + limit + " تال ئۇچۇر تاللىيالايسىز"; }, formatLoadMore: function (pageNumber) { return "ئۇچۇرلار ئوقۇلىۋاتىدۇ…"; }, formatSearching: function () { return "ئىزدەۋاتىدۇ…"; } - }); -})(jQuery); \ No newline at end of file + }; + + $.extend($.fn.select2.defaults, $.fn.select2.locales['ug-CN']); +})(jQuery);