Pass also the number as formatting parameter to ngettext

Closes #14204
(grafted from 31be52ae4271021ef94202a9fe69d69399aeb9a8)

--HG--
branch : 7.0
This commit is contained in:
Cédric Krier
2025-08-28 18:16:48 +02:00
parent 064f7f0a79
commit cdc5da2dab
+2 -2
View File
@@ -1681,7 +1681,7 @@
}, this.session).then(count => {
return Sao.common.message.run(
Sao.i18n.ngettext('%1 record imported',
'%1 records imported', count));
'%1 records imported', count, count));
}).then(prm.resolve, prm.reject);
}
});
@@ -2206,7 +2206,7 @@
}
return Sao.common.message.run(
Sao.i18n.ngettext(
"%1 record saved", "%1 records saved", size));
"%1 record saved", "%1 records saved", size, size));
},
set_url: function() {
var path = [this.session.database, 'data', this.screen.model_name];