From c37640720e2f19324566f5a1ab63a4945881d615 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?St=C3=A9phane=20Raimbault?= Date: Tue, 4 Feb 2014 16:32:13 +0100 Subject: [PATCH 1/3] Improve French translation --- select2_locale_fr.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/select2_locale_fr.js b/select2_locale_fr.js index 9afda2ab..110854f8 100644 --- a/select2_locale_fr.js +++ b/select2_locale_fr.js @@ -7,8 +7,8 @@ $.extend($.fn.select2.defaults, { formatMatches: function (matches) { return matches + " résultats sont disponibles, utilisez les flèches haut et bas pour naviguer."; }, formatNoMatches: function () { return "Aucun résultat trouvé"; }, - formatInputTooShort: function (input, min) { var n = min - input.length; return "Merci de saisir " + n + " caractère" + (n == 1 ? "" : "s") + " de plus"; }, - formatInputTooLong: function (input, max) { var n = input.length - max; return "Merci de supprimer " + n + " caractère" + (n == 1 ? "" : "s"); }, + formatInputTooShort: function (input, min) { var n = min - input.length; return "Saisissez " + n + " caractère" + (n == 1? "" : "s") + " supplémentaire" + (n == 1? "" : "s") ; }, + formatInputTooLong: function (input, max) { var n = input.length - max; return "Supprimez " + n + " caractère" + (n == 1? "" : "s"); }, formatSelectionTooBig: function (limit) { return "Vous pouvez seulement sélectionner " + limit + " élément" + (limit == 1 ? "" : "s"); }, formatLoadMore: function (pageNumber) { return "Chargement de résultats supplémentaires…"; }, formatSearching: function () { return "Recherche en cours…"; } From 1d26b2bc17c112f0f6f30c95ca0f7378bfb28cc4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?St=C3=A9phane=20Raimbault?= Date: Tue, 4 Feb 2014 16:32:36 +0100 Subject: [PATCH 2/3] Remove execution flags on select2_locale_zh-TW.js --- select2_locale_zh-TW.js | 0 1 file changed, 0 insertions(+), 0 deletions(-) mode change 100755 => 100644 select2_locale_zh-TW.js diff --git a/select2_locale_zh-TW.js b/select2_locale_zh-TW.js old mode 100755 new mode 100644 From 00bad439bc47bd503305d3b1f37599e653ab34f6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?St=C3=A9phane=20Raimbault?= Date: Tue, 4 Feb 2014 16:49:51 +0100 Subject: [PATCH 3/3] Add note about position of locale file --- README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 406fe79d..3964bd22 100644 --- a/README.md +++ b/README.md @@ -46,8 +46,8 @@ Integrations Internationalization (i18n) --------------------------- -Select2 supports multiple languages by simply including the right -language JS file (`select2_locale_it.js`, `select2_locale_nl.js`, etc.). +Select2 supports multiple languages by simply including the right language JS +file (`select2_locale_it.js`, `select2_locale_nl.js`, etc.) after `select2.js`. Missing a language? Just copy `select2_locale_en.js.template`, translate it, and make a pull request back to Select2 here on GitHub.