diff options
| author | Michael Vogt <michael.vogt@ubuntu.com> | 2006-01-17 17:27:10 +0100 |
|---|---|---|
| committer | Michael Vogt <michael.vogt@ubuntu.com> | 2006-01-17 17:27:10 +0100 |
| commit | eb44c169eb84087471be224c6086693033e30782 (patch) | |
| tree | 44abda257e5b34d873d6503ddfb8731ec14e1573 /UpdateManager/UpdateManager.py | |
| parent | 6184ae8cff4517797fddf458cedb7d1ec8bbda1a (diff) | |
| download | python-apt-eb44c169eb84087471be224c6086693033e30782.tar.gz | |
* improved HIGification
Diffstat (limited to 'UpdateManager/UpdateManager.py')
| -rw-r--r-- | UpdateManager/UpdateManager.py | 14 |
1 files changed, 9 insertions, 5 deletions
diff --git a/UpdateManager/UpdateManager.py b/UpdateManager/UpdateManager.py index 0c655ac6..c2f9340f 100644 --- a/UpdateManager/UpdateManager.py +++ b/UpdateManager/UpdateManager.py @@ -401,11 +401,15 @@ class UpdateManager(SimpleGladeApp): self.update_count() def update_count(self): - text = _("<big><b>Available updates</b></big>\n\n" - "The are currently %s software updates availabe. The " - "size of the download is %s." % \ - (len(self.packages), apt_pkg.SizeToStr(self.dl_size))) - self.label_header.set_markup(text) + if len(self.packages) == 0: + text_header= _("<big><b>No updates available</b></big>") + text_download = "" + else: + text_header = gettext.ngettext("<big><b>You can install one update</b></big>", "<big><b>You can install %s updates</b></big>", len(self.packages)) + + text_download = _("Download size: %s" % apt_pkg.SizeToStr(self.dl_size)) + self.label_header.set_markup(text_header) + self.label_downsize.set_markup(text_download) def activate_details(self, expander, data): expanded = self.expander_details.get_expanded() |
