Permalink
Browse files

magic-removal: Fixes #1052 -- Added a 'weeks' fidelity to strings ret…

…urned by timesince()/timeutil().

git-svn-id: http://code.djangoproject.com/svn/django/branches/magic-removal@1862 bcc190cf-cafb-0310-a4f2-bffc1f526a37
  • Loading branch information...
1 parent f998c7b commit ea35b35a14f686e13e5484b4f0a2ca0fab8f51d2 @freakboy3742 freakboy3742 committed Jan 8, 2006
Showing with 1 addition and 0 deletions.
  1. +1 −0 django/utils/timesince.py
View
1 django/utils/timesince.py
@@ -11,6 +11,7 @@ def timesince(d, now=None):
chunks = (
(60 * 60 * 24 * 365, lambda n: ngettext('year', 'years', n)),
(60 * 60 * 24 * 30, lambda n: ngettext('month', 'months', n)),
+ (60 * 60 * 24 * 7, lambda n : ngettext('week', 'weeks', n)),
(60 * 60 * 24, lambda n : ngettext('day', 'days', n)),
(60 * 60, lambda n: ngettext('hour', 'hours', n)),
(60, lambda n: ngettext('minute', 'minutes', n))

0 comments on commit ea35b35

Please sign in to comment.