Django

Code

Changeset 4226

Show
Ignore:
Timestamp:
12/18/06 10:16:12 (2 years ago)
Author:
adrian
Message:

Changed dateformat 'M' to use MONTHS_3 instead of MONTHS, for better support of translations

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • django/trunk/django/utils/dateformat.py

    r3113 r4226  
    1212""" 
    1313 
    14 from django.utils.dates import MONTHS, MONTHS_AP, WEEKDAYS 
     14from django.utils.dates import MONTHS, MONTHS_3, MONTHS_AP, WEEKDAYS 
    1515from django.utils.tzinfo import LocalTimezone 
    1616from calendar import isleap, monthrange 
     
    148148    def M(self): 
    149149        "Month, textual, 3 letters; e.g. 'Jan'" 
    150         return MONTHS[self.data.month][0:3] 
     150        return MONTHS_3[self.data.month].title() 
    151151 
    152152    def n(self):