don't use ngettext to translate "Yesterday" and "%i days ago" in the same time. see #6794
This commit is contained in:
parent
92dca9509b
commit
85d6cb7b9c
|
@ -1304,10 +1304,11 @@ class ConversationTextview(gobject.GObject):
|
|||
int(timegm(tim)) / 86400
|
||||
if diff_day == 0:
|
||||
day_str = ''
|
||||
elif diff_day == 1:
|
||||
day_str = _('Yesterday')
|
||||
else:
|
||||
#%i is day in year (1-365)
|
||||
day_str = i18n.ngettext('Yesterday', '%i days ago', diff_day,
|
||||
replace_plural=diff_day)
|
||||
day_str = _('%i days ago') % diff_day
|
||||
if day_str:
|
||||
format_ += day_str + ' '
|
||||
timestamp_str = gajim.config.get('time_stamp')
|
||||
|
|
Loading…
Reference in New Issue