Merge pull request #216 from Derbeth/translation

Allow to better translate add-ons dialog
This commit is contained in:
Damien Elmes 2017-11-20 14:07:01 +10:00 committed by GitHub
commit 8c5abe3a13
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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: