italic instead of bold. use since for not offline contacts and last status for offline; fix spacing in vcard text
This commit is contained in:
parent
04d6b58dc3
commit
0584025f8c
2 changed files with 8 additions and 3 deletions
|
@ -467,8 +467,13 @@ class RosterTooltip(NotificationAreaTooltip):
|
||||||
# escape markup entities.
|
# escape markup entities.
|
||||||
info += ' - ' + gtkgui_helpers.escape_for_pango_markup(status)
|
info += ' - ' + gtkgui_helpers.escape_for_pango_markup(status)
|
||||||
if contact.last_status_time:
|
if contact.last_status_time:
|
||||||
info += '\n<span weight="bold">' + _('Status time: ') + '%s</span>'\
|
if contact.show == 'offline':
|
||||||
% time.strftime('%c', contact.last_status_time)
|
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'):
|
for type_ in ('jpeg', 'png'):
|
||||||
file = os.path.join(gajim.AVATAR_PATH, prim_contact.jid + '.' + type_)
|
file = os.path.join(gajim.AVATAR_PATH, prim_contact.jid + '.' + type_)
|
||||||
|
|
|
@ -320,7 +320,7 @@ class VcardWindow:
|
||||||
if c.status:
|
if c.status:
|
||||||
stats += ': ' + c.status
|
stats += ': ' + c.status
|
||||||
if c.last_status_time:
|
if c.last_status_time:
|
||||||
stats += '\n ' + _('since') + time.strftime(' %c',
|
stats += '\n' + _('since %s') % time.strftime('%c',
|
||||||
c.last_status_time)
|
c.last_status_time)
|
||||||
one = False
|
one = False
|
||||||
status_label = self.xml.get_widget('status_label')
|
status_label = self.xml.get_widget('status_label')
|
||||||
|
|
Loading…
Add table
Reference in a new issue