Ticket #11637: pt_BR_format.diff

File pt_BR_format.diff, 1.8 KB (added by Guilherme Gondim <semente@…>, 15 years ago)

Brazilian Portuguese formats

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

     
    11# This file is distributed under the same license as the Django package.
    22#
    33
    4 # DATE_FORMAT =
    5 # TIME_FORMAT =
    6 # DATETIME_FORMAT =
    7 # YEAR_MONTH_FORMAT =
    8 # MONTH_DAY_FORMAT =
    9 # SHORT_DATE_FORMAT =
    10 # SHORT_DATETIME_FORMAT =
    11 # FIRST_DAY_OF_WEEK =
    12 # DATE_INPUT_FORMATS =
    13 # TIME_INPUT_FORMATS =
    14 # DATETIME_INPUT_FORMATS =
    15 # DECIMAL_SEPARATOR =
    16 # THOUSAND_SEPARATOR =
    17 # NUMBER_GROUPING =
     4DATE_FORMAT = 'j \\de N \\de Y'
     5TIME_FORMAT = 'H:i'
     6DATETIME_FORMAT = 'j \\de N \\de Y à\\s H:i'
     7YEAR_MONTH_FORMAT = 'F \\de Y'
     8MONTH_DAY_FORMAT = 'j \\de F'
     9SHORT_DATE_FORMAT = 'd/m/Y'
     10SHORT_DATETIME_FORMAT = 'd/m/Y H:i'
     11FIRST_DAY_OF_WEEK = 0  # Sunday
     12DATE_INPUT_FORMATS = (
     13    '%Y-%m-%d', '%d/%m/%Y', '%d/%m/%y', # '2006-10-25', '25/10/2006', '25/10/06'
     14    '%d de %b de %Y', '%d de %b, %Y',   # '25 de Out de 2006', '25 Out, 2006'
     15    '%d de %B de %Y', '%d de %B, %Y',   # '25 de Outubro de 2006', '25 de Outubro, 2006'
     16)
     17TIME_INPUT_FORMATS = (
     18    '%H:%M:%S',     # '14:30:59'
     19    '%H:%M',        # '14:30'
     20)
     21DATETIME_INPUT_FORMATS = (
     22    '%Y-%m-%d %H:%M:%S',     # '2006-10-25 14:30:59'
     23    '%Y-%m-%d %H:%M',        # '2006-10-25 14:30'
     24    '%Y-%m-%d',              # '2006-10-25'
     25    '%d/%m/%Y %H:%M:%S',     # '25/10/2006 14:30:59'
     26    '%d/%m/%Y %H:%M',        # '25/10/2006 14:30'
     27    '%d/%m/%Y',              # '25/10/2006'
     28    '%d/%m/%y %H:%M:%S',     # '25/10/06 14:30:59'
     29    '%d/%m/%y %H:%M',        # '25/10/06 14:30'
     30    '%d/%m/%y',              # '25/10/06'
     31)
     32DECIMAL_SEPARATOR = ','
     33THOUSAND_SEPARATOR = '.'
     34NUMBER_GROUPING = 3
Back to Top