summaryrefslogtreecommitdiff
path: root/ishtar_common/static/select2/js/select2_locale_fr.js
diff options
context:
space:
mode:
Diffstat (limited to 'ishtar_common/static/select2/js/select2_locale_fr.js')
-rw-r--r--ishtar_common/static/select2/js/select2_locale_fr.js18
1 files changed, 18 insertions, 0 deletions
diff --git a/ishtar_common/static/select2/js/select2_locale_fr.js b/ishtar_common/static/select2/js/select2_locale_fr.js
new file mode 100644
index 000000000..d5485d6be
--- /dev/null
+++ b/ishtar_common/static/select2/js/select2_locale_fr.js
@@ -0,0 +1,18 @@
+/**
+ * Select2 French translation
+ */
+(function ($) {
+ "use strict";
+
+ $.fn.select2.locales['fr'] = {
+ 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 "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…"; }
+ };
+
+ $.extend($.fn.select2.defaults, $.fn.select2.locales['fr']);
+})(jQuery);