Skip to content
Snippets Groups Projects
Commit 6b578f9b authored by Yann Leboulanger's avatar Yann Leboulanger
Browse files

use ngettext to translate plural form for languages that have several plural forms. see #6794

parent 12019612
No related branches found
No related tags found
No related merge requests found
......@@ -1307,7 +1307,9 @@ class ConversationTextview(gobject.GObject):
day_str = _('Yesterday')
else:
#%i is day in year (1-365)
day_str = _('%i days ago') % diff_day
day_str = i18n.ngettext('%(nb_days)i day ago',
'%(nb_days)i days ago', diff_day, {'nb_days': diff_day},
{'nb_days': diff_day})
if day_str:
format += day_str + ' '
timestamp_str = gajim.config.get('time_stamp')
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment