simpler string pluralizing
This commit is contained in:
parent
02735642f1
commit
481409253b
1 changed files with 1 additions and 4 deletions
|
@ -169,10 +169,7 @@ $(document).ready(function() {
|
|||
|
||||
function confirmCancel(opes_to_cancel) {
|
||||
var nb = opes_to_cancel.length;
|
||||
var content = nb+' opération'.pluralize(nb)
|
||||
+' va'.pluralize(nb, ' vont')
|
||||
+ ' être'
|
||||
+ ' annulée'.pluralize(nb);
|
||||
var content = nb+' opération va être annulée'.pluralize(nb, ' opérations vont être annulées')
|
||||
$.confirm({
|
||||
title: 'Confirmation',
|
||||
content: content,
|
||||
|
|
Loading…
Add table
Reference in a new issue