Kaydet (Commit) b5a4aef4 authored tarafından Jannis Leidel's avatar Jannis Leidel

Updated i18n tests a little to handle test failures better and updated…

Updated i18n tests a little to handle test failures better and updated Argentinian Spanish format strings. Thanks to Ramiro Morales. Refs #11637.

git-svn-id: http://code.djangoproject.com/svn/django/trunk@11976 bcc190cf-cafb-0310-a4f2-bffc1f526a37
üst 7e44efb8
...@@ -2,17 +2,28 @@ ...@@ -2,17 +2,28 @@
# This file is distributed under the same license as the Django package. # This file is distributed under the same license as the Django package.
# #
# DATE_FORMAT = DATE_FORMAT = 'j \de F \de Y'
# TIME_FORMAT = TIME_FORMAT = 'H:i:s'
# DATETIME_FORMAT = DATETIME_FORMAT = 'j \de F \de Y \a \l\a\s H:i'
# YEAR_MONTH_FORMAT = YEAR_MONTH_FORMAT = 'F \de Y'
# MONTH_DAY_FORMAT = MONTH_DAY_FORMAT = 'j \de F'
# SHORT_DATE_FORMAT = SHORT_DATE_FORMAT = 'd/m/Y'
# SHORT_DATETIME_FORMAT = SHORT_DATETIME_FORMAT = 'd/m/Y H:i'
# FIRST_DAY_OF_WEEK = FIRST_DAY_OF_WEEK = 0 # 0: Sunday, 1: Monday
# DATE_INPUT_FORMATS = DATE_INPUT_FORMATS = (
# TIME_INPUT_FORMATS = '%d/%m/%Y', # '31/12/2009'
# DATETIME_INPUT_FORMATS = '%d/%m/%y', # '31/12/09'
# DECIMAL_SEPARATOR = )
# THOUSAND_SEPARATOR = TIME_INPUT_FORMATS = (
# NUMBER_GROUPING = '%H:%M:%S', # '14:30:59'
'%H:%M', # '14:30'
)
DATETIME_INPUT_FORMATS = (
'%d/%m/%Y %H:%M:%S',
'%d/%m/%Y %H:%M',
'%d/%m/%y %H:%M:%S',
'%d/%m/%y %H:%M',
)
DECIMAL_SEPARATOR = ','
THOUSAND_SEPARATOR = '.'
NUMBER_GROUPING = 3
from django import template, forms
from django.forms.extras import SelectDateWidget
class I18nForm(forms.Form):
decimal_field = forms.DecimalField()
float_field = forms.FloatField()
date_field = forms.DateField()
datetime_field = forms.DateTimeField()
time_field = forms.TimeField()
class SelectDateForm(forms.Form):
date_field = forms.DateField(widget=SelectDateWidget)
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment