don't use ngettext to translate "Yesterday" and "%i days ago" in the same time. see #6794

This commit is contained in:
Yann Leboulanger 2011-03-05 22:29:16 +01:00
parent 92dca9509b
commit 85d6cb7b9c
1 changed files with 3 additions and 2 deletions

View File

@ -1304,10 +1304,11 @@ class ConversationTextview(gobject.GObject):
int(timegm(tim)) / 86400 int(timegm(tim)) / 86400
if diff_day == 0: if diff_day == 0:
day_str = '' day_str = ''
elif diff_day == 1:
day_str = _('Yesterday')
else: else:
#%i is day in year (1-365) #%i is day in year (1-365)
day_str = i18n.ngettext('Yesterday', '%i days ago', diff_day, day_str = _('%i days ago') % diff_day
replace_plural=diff_day)
if day_str: if day_str:
format_ += day_str + ' ' format_ += day_str + ' '
timestamp_str = gajim.config.get('time_stamp') timestamp_str = gajim.config.get('time_stamp')