From 0e93836bf35248fefb2cce86eb0ddd636f7ee079 Mon Sep 17 00:00:00 2001 From: Uriy Efremochkin <333peps@gmail.com> Date: Wed, 8 Jan 2014 15:05:47 +0600 Subject: [PATCH] Icelandic l10n improved --- select2_locale_is.js | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/select2_locale_is.js b/select2_locale_is.js index b10073b5..ff4f70ca 100644 --- a/select2_locale_is.js +++ b/select2_locale_is.js @@ -1,14 +1,13 @@ /** * Select2 Icelandic translation. - * */ (function ($) { "use strict"; $.extend($.fn.select2.defaults, { formatNoMatches: function () { return "Ekkert fannst"; }, - formatInputTooShort: function (input, min) { var n = min - input.length; return "Vinsamlegast skrifið " + n + " staf" + (n == 1 ? "" : "i") + " í viðbót"; }, - formatInputTooLong: function (input, max) { var n = input.length - max; return "Vinsamlegast styttið texta um " + n + " staf" + (n == 1 ? "" : "i"); }, + formatInputTooShort: function (input, min) { var n = min - input.length; return "Vinsamlegast skrifið " + n + " staf" + (n > 1 ? "i" : "") + " í viðbót"; }, + formatInputTooLong: function (input, max) { var n = input.length - max; return "Vinsamlegast styttið texta um " + n + " staf" + (n > 1 ? "i" : ""); }, formatSelectionTooBig: function (limit) { return "Þú getur aðeins valið " + limit + " atriði"; }, formatLoadMore: function (pageNumber) { return "Sæki fleiri niðurstöður..."; }, formatSearching: function () { return "Leita..."; }