Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

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...
commit ea35b35a14f686e13e5484b4f0a2ca0fab8f51d2 1 parent f998c7b
Russell Keith-Magee authored January 08, 2006

Showing 1 changed file with 1 addition and 0 deletions. Show diff stats Hide diff stats

  1. 1  django/utils/timesince.py
1  django/utils/timesince.py
@@ -11,6 +11,7 @@ def timesince(d, now=None):
11 11
     chunks = (
12 12
       (60 * 60 * 24 * 365, lambda n: ngettext('year', 'years', n)),
13 13
       (60 * 60 * 24 * 30, lambda n: ngettext('month', 'months', n)),
  14
+      (60 * 60 * 24 * 7, lambda n : ngettext('week', 'weeks', n)),
14 15
       (60 * 60 * 24, lambda n : ngettext('day', 'days', n)),
15 16
       (60 * 60, lambda n: ngettext('hour', 'hours', n)),
16 17
       (60, lambda n: ngettext('minute', 'minutes', n))

0 notes on commit ea35b35

Please sign in to comment.
Something went wrong with that request. Please try again.