From 498895e8aba48ecb29b16e86d88c2310613536d3 Mon Sep 17 00:00:00 2001 From: Doug Blank Date: Tue, 29 Nov 2011 03:05:30 +0000 Subject: [PATCH] 5392: Addon check type strings are not translatable svn: r18529 --- src/gui/viewmanager.py | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/src/gui/viewmanager.py b/src/gui/viewmanager.py index 4171ab0b9..0e5bf39f9 100644 --- a/src/gui/viewmanager.py +++ b/src/gui/viewmanager.py @@ -427,13 +427,16 @@ class ViewManager(CLIManager): if fp: fp.close() LOG.debug("Done checking!") + # List of translated strings used here + # Dead code for l10n + _('new'), _('update'), _('New'), _('Updated') if addon_update_list: self.update_addons(addon_update_list) elif force: from QuestionDialog import OkDialog OkDialog(_("There are no available addons of this type"), _("Checked for '%s'") % - _("' and '").join(config.get('behavior.check-for-update-types')), + _("' and '").join([_(t) for t in config.get('behavior.check-for-update-types')]), self.window) def update_addons(self, addon_update_list): @@ -473,9 +476,9 @@ class ViewManager(CLIManager): last_category = None for (status,plugin_url,plugin_dict) in addon_update_list: count = get_count(addon_update_list, plugin_dict["t"]) - category = "%s %s" % (_(status), ngettext(plugin_dict["t"], - plugin_dict["t"] + "s", - count)) + category = _("%(adjective)s %(addon)s") % { + "adjective": status, + "addon": ngettext(plugin_dict["t"], plugin_dict["t"] + "s", count)} if last_category != category: last_category = category node = self.list.add([False, # initially selected?