summaryrefslogtreecommitdiff
path: root/django/utils/dates.py
diff options
context:
space:
mode:
authorJannis Leidel <jannis@leidel.info>2011-01-21 22:25:50 +0000
committerJannis Leidel <jannis@leidel.info>2011-01-21 22:25:50 +0000
commit07b92cd4894f2612a041066a69204061142de328 (patch)
tree5cf71d1f4dcc820da6e0c85785f6177f48246552 /django/utils/dates.py
parenteacecbe9e36fe41205061ab59d055c17849468c1 (diff)
Fixed #9988 (again) -- Updated list of Associated Press months names to use a translation context. Thanks, Claude Paroz.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@15280 bcc190cf-cafb-0310-a4f2-bffc1f526a37
Diffstat (limited to 'django/utils/dates.py')
-rw-r--r--django/utils/dates.py14
1 files changed, 12 insertions, 2 deletions
diff --git a/django/utils/dates.py b/django/utils/dates.py
index e732bec629..a1c0fa254c 100644
--- a/django/utils/dates.py
+++ b/django/utils/dates.py
@@ -28,8 +28,18 @@ MONTHS_3_REV = {
'sep':9, 'oct':10, 'nov':11, 'dec':12
}
MONTHS_AP = { # month names in Associated Press style
- 1:_('Jan.'), 2:_('Feb.'), 3:_('March'), 4:_('April'), 5:_('May'), 6:_('June'), 7:_('July'),
- 8:_('Aug.'), 9:_('Sept.'), 10:_('Oct.'), 11:_('Nov.'), 12:_('Dec.')
+ 1: pgettext_lazy('abbrev. month', 'Jan.'),
+ 2: pgettext_lazy('abbrev. month', 'Feb.'),
+ 3: pgettext_lazy('abbrev. month', 'March'),
+ 4: pgettext_lazy('abbrev. month', 'April'),
+ 5: pgettext_lazy('abbrev. month', 'May'),
+ 6: pgettext_lazy('abbrev. month', 'June'),
+ 7: pgettext_lazy('abbrev. month', 'July'),
+ 8: pgettext_lazy('abbrev. month', 'Aug.'),
+ 9: pgettext_lazy('abbrev. month', 'Sept.'),
+ 10: pgettext_lazy('abbrev. month', 'Oct.'),
+ 11: pgettext_lazy('abbrev. month', 'Nov.'),
+ 12: pgettext_lazy('abbrev. month', 'Dec.')
}
MONTHS_ALT = { # required for long date representation by some locales
1: pgettext_lazy('alt. month', 'January'),