Skip to content

Commit

Permalink
Fixes French translation (see select2#4988)
Browse files Browse the repository at this point in the history
  • Loading branch information
alexweissman authored and vedanshujain committed Jun 21, 2018
1 parent d9d5355 commit cb7de47
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 22 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Expand Up @@ -9,6 +9,7 @@
- Updates to Slovak (#4915)
- Fixed Norwegian `inputTooShort` message (#4896)
- Add Bosnian translation (`bs`) (#4504)
- Improve French translation (#4988)

## 4.0.4
- Fix issue with entire form losing focus when tabbing away from a Select2 control (#4419)
25 changes: 3 additions & 22 deletions src/js/select2/i18n/fr.js
Expand Up @@ -7,37 +7,18 @@ define(function () {
inputTooLong: function (args) {
var overChars = args.input.length - args.maximum;

var message = 'Supprimez ' + overChars + ' caractère';

if (overChars !== 1) {
message += 's';
}

return message;
return 'Supprimez ' + overChars + ' caractère' + (overChars > 1) ? 's' : '';
},
inputTooShort: function (args) {
var remainingChars = args.minimum - args.input.length;

var message = 'Saisissez ' + remainingChars + ' caractère';

if (remainingChars !== 1) {
message += 's';
}

return message;
return 'Saisissez au moins ' + remainingChars + ' caractère' + (remainingChars > 1) ? 's' : '';
},
loadingMore: function () {
return 'Chargement de résultats supplémentaires…';
},
maximumSelected: function (args) {
var message = 'Vous pouvez seulement sélectionner ' +
args.maximum + ' élément';

if (args.maximum !== 1) {
message += 's';
}

return message;
return 'Vous pouvez seulement sélectionner ' + args.maximum + ' élément' + (args.maximum > 1) ? 's' : '';
},
noResults: function () {
return 'Aucun résultat trouvé';
Expand Down

0 comments on commit cb7de47

Please sign in to comment.