From 674d45a606d6108b29bbb43ee0f0bbe10e9ff8f2 Mon Sep 17 00:00:00 2001 From: Piotr Kubowicz Date: Sun, 19 Nov 2017 10:28:04 +0100 Subject: [PATCH] Allow to better translate add-ons dialog --- aqt/addons.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/aqt/addons.py b/aqt/addons.py index 4b9cb2003..8900e6443 100644 --- a/aqt/addons.py +++ b/aqt/addons.py @@ -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: