From edddf961a1fbe3a77f120d000349916e006cc14a Mon Sep 17 00:00:00 2001 From: execjosh Date: Wed, 3 Apr 2013 17:10:24 +0900 Subject: [PATCH] Add Japanese translation --- select2_locale_ja.js | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 select2_locale_ja.js diff --git a/select2_locale_ja.js b/select2_locale_ja.js new file mode 100644 index 00000000..3fc8074b --- /dev/null +++ b/select2_locale_ja.js @@ -0,0 +1,15 @@ +/** + * Select2 Japanese 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);