%X asks locale
This commit is contained in:
parent
a79587590f
commit
4c4ad5e8cd
1 changed files with 2 additions and 2 deletions
|
@ -562,11 +562,11 @@ class ConversationTextview(gtk.TextView):
|
||||||
day_str = _('Yesterday')
|
day_str = _('Yesterday')
|
||||||
else:
|
else:
|
||||||
#the number is >= 2
|
#the number is >= 2
|
||||||
day_str = _('%i days ago') % diff_day
|
day_str = _('%d days ago') % diff_day
|
||||||
format = before_str
|
format = before_str
|
||||||
if day_str:
|
if day_str:
|
||||||
format += day_str + ' '
|
format += day_str + ' '
|
||||||
format += '%H:%M:%S' + after_str
|
format += '%X' + after_str
|
||||||
tim_format = time.strftime(format, tim)
|
tim_format = time.strftime(format, tim)
|
||||||
buffer.insert_with_tags_by_name(end_iter, tim_format + ' ',
|
buffer.insert_with_tags_by_name(end_iter, tim_format + ' ',
|
||||||
*other_tags_for_time)
|
*other_tags_for_time)
|
||||||
|
|
Loading…
Add table
Reference in a new issue