From cf3decd2e830b53569e8dd9c12c2469914eb9b21 Mon Sep 17 00:00:00 2001 From: Sebastian Heinlein Date: Wed, 27 Sep 2006 00:30:46 +0200 Subject: * Make some strings translatable - seems that gettext doesn't like being part of string addition. the other one was my fault and not the one of gettext. fix #62519 and #62458 * Fix the imports and calls of human_size --- UpdateManager/UpdateManager.py | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) (limited to 'UpdateManager/UpdateManager.py') diff --git a/UpdateManager/UpdateManager.py b/UpdateManager/UpdateManager.py index 2bb95b2f..02a89a40 100644 --- a/UpdateManager/UpdateManager.py +++ b/UpdateManager/UpdateManager.py @@ -592,8 +592,8 @@ class UpdateManager(SimpleGladeApp): self.button_install.set_sensitive(self.cache.installCount) self.dl_size = self.cache.requiredDownload # TRANSLATORS: b stands for Bytes - self.label_downsize.set_markup(_("Download size: %s" % \ - humanize_size(self.dl_size))) + self.label_downsize.set_markup(_("Download size: %s") % \ + humanize_size(self.dl_size)) def update_count(self): """activate or disable widgets and show dialog texts correspoding to @@ -601,7 +601,7 @@ class UpdateManager(SimpleGladeApp): self.refresh_updates_count() num_updates = self.cache.installCount if num_updates == 0: - text_header= ""+_("Your system is up-to-date")+"" + text_header= "%s" + text_header = "%s" % \ + (gettext.ngettext("You can install %s update", + "You can install %s updates", + num_updates) % \ + num_updates) text_download = _("Download size: %s") % humanize_size(self.dl_size) self.notebook_details.set_sensitive(True) self.treeview_update.set_sensitive(True) -- cgit v1.2.3