5392: Addon check type strings are not translatable
svn: r18529
This commit is contained in:
parent
0d819226ec
commit
498895e8ab
@ -427,13 +427,16 @@ class ViewManager(CLIManager):
|
|||||||
if fp:
|
if fp:
|
||||||
fp.close()
|
fp.close()
|
||||||
LOG.debug("Done checking!")
|
LOG.debug("Done checking!")
|
||||||
|
# List of translated strings used here
|
||||||
|
# Dead code for l10n
|
||||||
|
_('new'), _('update'), _('New'), _('Updated')
|
||||||
if addon_update_list:
|
if addon_update_list:
|
||||||
self.update_addons(addon_update_list)
|
self.update_addons(addon_update_list)
|
||||||
elif force:
|
elif force:
|
||||||
from QuestionDialog import OkDialog
|
from QuestionDialog import OkDialog
|
||||||
OkDialog(_("There are no available addons of this type"),
|
OkDialog(_("There are no available addons of this type"),
|
||||||
_("Checked for '%s'") %
|
_("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)
|
self.window)
|
||||||
|
|
||||||
def update_addons(self, addon_update_list):
|
def update_addons(self, addon_update_list):
|
||||||
@ -473,9 +476,9 @@ class ViewManager(CLIManager):
|
|||||||
last_category = None
|
last_category = None
|
||||||
for (status,plugin_url,plugin_dict) in addon_update_list:
|
for (status,plugin_url,plugin_dict) in addon_update_list:
|
||||||
count = get_count(addon_update_list, plugin_dict["t"])
|
count = get_count(addon_update_list, plugin_dict["t"])
|
||||||
category = "%s %s" % (_(status), ngettext(plugin_dict["t"],
|
category = _("%(adjective)s %(addon)s") % {
|
||||||
plugin_dict["t"] + "s",
|
"adjective": status,
|
||||||
count))
|
"addon": ngettext(plugin_dict["t"], plugin_dict["t"] + "s", count)}
|
||||||
if last_category != category:
|
if last_category != category:
|
||||||
last_category = category
|
last_category = category
|
||||||
node = self.list.add([False, # initially selected?
|
node = self.list.add([False, # initially selected?
|
||||||
|
Loading…
Reference in New Issue
Block a user