diff --git a/src/tooltips.py b/src/tooltips.py index 39ec15b7a24c9d324733e04fccbd6d246c0338be..aca86fa546c321f211e9ee78106033b99aec3d3d 100644 --- a/src/tooltips.py +++ b/src/tooltips.py @@ -467,8 +467,13 @@ class RosterTooltip(NotificationAreaTooltip): # escape markup entities. info += ' - ' + gtkgui_helpers.escape_for_pango_markup(status) if contact.last_status_time: - info += '\n<span weight="bold">' + _('Status time: ') + '%s</span>'\ - % time.strftime('%c', contact.last_status_time) + if contact.show == 'offline': + text = _('Last status on %s') + else: + text = _('Since %s') + + text = text % time.strftime('%c', contact.last_status_time) + info += '\n<span style="italic">%s</span>' % text for type_ in ('jpeg', 'png'): file = os.path.join(gajim.AVATAR_PATH, prim_contact.jid + '.' + type_) diff --git a/src/vcard.py b/src/vcard.py index 2b1e9d4c32854537e34bdd6859233b27943a93f1..a1fcd6541a0fed195d34b64377922728a1a059ec 100644 --- a/src/vcard.py +++ b/src/vcard.py @@ -320,7 +320,7 @@ class VcardWindow: if c.status: stats += ': ' + c.status if c.last_status_time: - stats += '\n ' + _('since') + time.strftime(' %c', + stats += '\n' + _('since %s') % time.strftime('%c', c.last_status_time) one = False status_label = self.xml.get_widget('status_label')