diff options
| author | Georg Bauer <gb@hugo.westfalen.de> | 2005-10-23 11:45:35 +0000 |
|---|---|---|
| committer | Georg Bauer <gb@hugo.westfalen.de> | 2005-10-23 11:45:35 +0000 |
| commit | 4bab93a5fd50187d70b7b0427b8e910f5b355832 (patch) | |
| tree | 9af560bd01b99de47ffcf9311a8bc28852b7e96c /django/utils/dates.py | |
| parent | 174c8a0295c7e3f4782b5a0769de92e3f94bc801 (diff) | |
i18n: added missing translations of day names, month names and language selection
git-svn-id: http://code.djangoproject.com/svn/django/branches/i18n@994 bcc190cf-cafb-0310-a4f2-bffc1f526a37
Diffstat (limited to 'django/utils/dates.py')
| -rw-r--r-- | django/utils/dates.py | 16 |
1 files changed, 9 insertions, 7 deletions
diff --git a/django/utils/dates.py b/django/utils/dates.py index 2ae0cc1a6e..12fb7b2b76 100644 --- a/django/utils/dates.py +++ b/django/utils/dates.py @@ -1,17 +1,19 @@ "Commonly-used date structures" +from django.utils.translation import gettext_lazy as _ + WEEKDAYS = { - 0:'Monday', 1:'Tuesday', 2:'Wednesday', 3:'Thursday', 4:'Friday', - 5:'Saturday', 6:'Sunday' + 0:_('Monday'), 1:_('Tuesday'), 2:_('Wednesday'), 3:_('Thursday'), 4:_('Friday'), + 5:_('Saturday'), 6:_('Sunday') } WEEKDAYS_REV = { 'monday':0, 'tuesday':1, 'wednesday':2, 'thursday':3, 'friday':4, 'saturday':5, 'sunday':6 } MONTHS = { - 1:'January', 2:'February', 3:'March', 4:'April', 5:'May', 6:'June', - 7:'July', 8:'August', 9:'September', 10:'October', 11:'November', - 12:'December' + 1:_('January'), 2:_('February'), 3:_('March'), 4:_('April'), 5:_('May'), 6:_('June'), + 7:_('July'), 8:_('August'), 9:_('September'), 10:_('October'), 11:_('November'), + 12:_('December') } MONTHS_3 = { 1:'jan', 2:'feb', 3:'mar', 4:'apr', 5:'may', 6:'jun', 7:'jul', 8:'aug', @@ -22,6 +24,6 @@ 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:_('Jan.'), 2:_('Feb.'), 3:_('March'), 4:_('April'), 5:_('May'), 6:_('June'), 7:_('July'), + 8:_('Aug.'), 9:_('Sept.'), 10:_('Oct.'), 11:_('Nov.'), 12:_('Dec.') } |
