~aaronp/software-center/fix-699898

« back to all changes in this revision

Viewing changes to softwarecenter/view/historypane.py

  • Committer: Michael Vogt
  • Date: 2010-12-21 14:34:08 UTC
  • Revision ID: michael.vogt@ubuntu.com-20101221143408-qr304u1xkc9cgfpg
cherry pick r1340 from kiwinote

Show diffs side-by-side

added added

removed removed

Lines of Context:
306
306
        if isinstance(when, datetime.datetime):
307
307
            action = store.get_value(iter, self.COL_ACTION)
308
308
            pkg = store.get_value(iter, self.COL_PKG)
 
309
            subs = {'pkgname': pkg, 'time': when.time().strftime('%X')}
309
310
            if action == self.INSTALLED:
310
 
                text = _('%s installed %s') % (pkg, when.time().strftime('%X'))
 
311
                text = _('%(pkgname)s installed %(time)s') % subs
311
312
            elif action == self.REMOVED:
312
 
                text = _('%s removed %s') % (pkg, when.time().strftime('%X'))
 
313
                text = _('%(pkgname)s removed %(time)s') % subs
313
314
            elif action == self.UPGRADED:
314
 
                text = _('%s updated %s') % (pkg, when.time().strftime('%X'))
 
315
                text = _('%(pkgname)s updated %(time)s') % subs
315
316
        elif isinstance(when, datetime.date):
316
317
            today = datetime.date.today()
317
318
            monday = today - datetime.timedelta(days=today.weekday())