diff options
| author | Sebastian Heinlein <sebi@sebi-pc> | 2006-09-27 00:30:46 +0200 |
|---|---|---|
| committer | Sebastian Heinlein <sebi@sebi-pc> | 2006-09-27 00:30:46 +0200 |
| commit | cf3decd2e830b53569e8dd9c12c2469914eb9b21 (patch) | |
| tree | 033fe3b9ccfe9ead34caebe9226646917a04de94 /UpdateManager/UpdateManager.py | |
| parent | 84593d761ff3e297753111923e621dfaf9c9ff77 (diff) | |
| download | python-apt-cf3decd2e830b53569e8dd9c12c2469914eb9b21.tar.gz | |
* 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
Diffstat (limited to 'UpdateManager/UpdateManager.py')
| -rw-r--r-- | UpdateManager/UpdateManager.py | 16 |
1 files changed, 8 insertions, 8 deletions
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= "<big><b>"+_("Your system is up-to-date")+"</b></big>" + text_header= "<big><b>%s</b></big" %_("Your system is up-to-date") text_download = "" self.notebook_details.set_sensitive(False) self.treeview_update.set_sensitive(False) @@ -611,11 +611,11 @@ class UpdateManager(SimpleGladeApp): self.textview_changes.get_buffer().set_text("") self.textview_descr.get_buffer().set_text("") else: - text_header = "<big><b>" + \ - gettext.ngettext("You can install %s update", - "You can install %s updates", - num_updates) % \ - num_updates + "</b></big>" + text_header = "<b><big>%s</b></big>" % \ + (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) |
