Skip to content

Commit

Permalink
[#2375] Fix translation strings for friendly dates
Browse files Browse the repository at this point in the history
  • Loading branch information
tobes committed Aug 9, 2012
1 parent f04c85a commit f360237
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions ckan/lib/formatters.py
Expand Up @@ -80,14 +80,14 @@ def localised_nice_date(datetime_):
if seconds < 60:
return _('Just now')
else:
return ungettext('{mins} minute ago}', '{mins} minutes ago',
return ungettext('{mins} minute ago', '{mins} minutes ago',
seconds / 60).format(mins=seconds / 60)
else:
return ungettext('{hours} hour ago}', '{hours} hours ago',
return ungettext('{hours} hour ago', '{hours} hours ago',
seconds / 3600).format(hours=seconds / 3600)
# more than one day
if days < 31:
return ungettext('{days} day ago}', '{days} days ago',
return ungettext('{days} day ago', '{days} days ago',
days).format(days=days)
# actual date
month = datetime_.month
Expand Down

0 comments on commit f360237

Please sign in to comment.