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) {
|
function confirmCancel(opes_to_cancel) {
|
||||||
var nb = opes_to_cancel.length;
|
var nb = opes_to_cancel.length;
|
||||||
var content = nb+' opération'.pluralize(nb)
|
var content = nb+' opération va être annulée'.pluralize(nb, ' opérations vont être annulées')
|
||||||
+' va'.pluralize(nb, ' vont')
|
|
||||||
+ ' être'
|
|
||||||
+ ' annulée'.pluralize(nb);
|
|
||||||
$.confirm({
|
$.confirm({
|
||||||
title: 'Confirmation',
|
title: 'Confirmation',
|
||||||
content: content,
|
content: content,
|
||||||
|
|
Loading…
Add table
Reference in a new issue