Ticket #16076: formats.patch

File formats.patch, 1.4 KB (added by slink, 13 years ago)

Patch for hungarian locale formats module

  • django/conf/locale/hu/formats.py

     
    55# The *_FORMAT strings use the Django date format syntax,
    66# see http://docs.djangoproject.com/en/dev/ref/templates/builtins/#date
    77DATE_FORMAT = 'Y. F j.'
    8 TIME_FORMAT = 'G:i:s'
    9 # DATETIME_FORMAT =
    10 # YEAR_MONTH_FORMAT =
     8TIME_FORMAT = 'G.i.s'
     9DATETIME_FORMAT = 'Y. F j. G.i.s'
     10YEAR_MONTH_FORMAT = 'Y. F'
    1111MONTH_DAY_FORMAT = 'F j.'
    1212SHORT_DATE_FORMAT = 'Y.m.d.'
    13 # SHORT_DATETIME_FORMAT =
    14 # FIRST_DAY_OF_WEEK =
     13SHORT_DATETIME_FORMAT = 'Y.m.d. G.i.s'
     14FIRST_DAY_OF_WEEK = 1 # Monday
    1515
    1616# The *_INPUT_FORMATS strings use the Python strftime format syntax,
    1717# see http://docs.python.org/library/datetime.html#strftime-strptime-behavior
    18 # DATE_INPUT_FORMATS =
    19 # TIME_INPUT_FORMATS =
    20 # DATETIME_INPUT_FORMATS =
     18DATE_INPUT_FORMATS = (
     19    '%Y.%m.%d.', # '2006.10.25.'
     20)
     21TIME_INPUT_FORMATS = (
     22    '%H.%M.%S', # '14.30.59'
     23    '%H.%M',    # '14.30'
     24)
     25DATETIME_INPUT_FORMATS = (
     26    '%Y.%m.%d. %H.%m.%S',   # '2006.10.25. 14.30.59'
     27    '%Y.%m.%d. %H.%M',      # '2006.10.25. 14.30'
     28    '%Y.%m.%d.',            # '2006.10.25.'
     29)
    2130DECIMAL_SEPARATOR = ','
    2231THOUSAND_SEPARATOR = u' ' # Non-breaking space
    23 # NUMBER_GROUPING =
     32NUMBER_GROUPING = 3
Back to Top