Allow to better translate add-ons dialog

This commit is contained in:
Piotr Kubowicz 2017-11-19 10:28:04 +01:00
parent 44e88afed0
commit 674d45a606

View File

@ -348,7 +348,9 @@ class AddonsDialog(QDialog):
selected = self.selectedAddons()
if not selected:
return
if not askUser(_("Delete the %(num)d selected add-ons?") %
if not askUser(ngettext("Delete the %(num)d selected add-on?",
"Delete the %(num)d selected add-ons?",
len(selected)) %
dict(num=len(selected))):
return
for dir in selected: