فهرست منبع

Merge pull request #2355 from stephane/i18n

I18n
Kevin Brown 11 سال پیش
والد
کامیت
52425f93c8
3فایلهای تغییر یافته به همراه4 افزوده شده و 4 حذف شده
  1. 2 2
      README.md
  2. 2 2
      select2_locale_fr.js
  3. 0 0
      select2_locale_zh-TW.js

+ 2 - 2
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.

+ 2 - 2
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…"; }

+ 0 - 0
select2_locale_zh-TW.js