Skip to content

Commit 540d374

Browse files
committed
add french translation
1 parent 5ea402a commit 540d374

1 file changed

Lines changed: 15 additions & 0 deletions

File tree

select2_locale_fr.js

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
/**
2+
* Select2 French translation
3+
*/
4+
(function ($) {
5+
"use strict";
6+
7+
$.extend($.fn.select2.defaults, {
8+
formatNoMatches: function () { return "Aucun résultat trouvé"; },
9+
formatInputTooShort: function (input, min) { var n = min - input.length; return "Merci de saisir " + n + " caratère" + (n == 1? "" : "s") + " de plus"; },
10+
formatInputTooLong: function (input, max) { var n = input.length - max; return "Merci de saisir " + n + " caratère" + (n == 1? "" : "s") + " de moins"; },
11+
formatSelectionTooBig: function (limit) { return "Vous pouvez seulement sélectionner " + limit + " élément" + (limit == 1 ? "" : "s"); },
12+
formatLoadMore: function (pageNumber) { return "Chargement de résultats supplémentaires..."; },
13+
formatSearching: function () { return "Recherche en cours..."; }
14+
});
15+
})(jQuery);

0 commit comments

Comments
 (0)