From 657db6a30aab0390ee7084c5cbc6b0d2f679cbb4 Mon Sep 17 00:00:00 2001 From: Jannis Leidel Date: Thu, 29 Apr 2010 14:38:22 +0000 Subject: [PATCH] Updated Swedish locale formats. Refs #11637. git-svn-id: http://code.djangoproject.com/svn/django/trunk@13052 bcc190cf-cafb-0310-a4f2-bffc1f526a37 --- django/conf/locale/sv/formats.py | 30 ++++++++++++++++++------------ 1 file changed, 18 insertions(+), 12 deletions(-) diff --git a/django/conf/locale/sv/formats.py b/django/conf/locale/sv/formats.py index df4e633562..b5050a6d6e 100644 --- a/django/conf/locale/sv/formats.py +++ b/django/conf/locale/sv/formats.py @@ -3,16 +3,22 @@ # DATE_FORMAT = 'j F Y' -TIME_FORMAT = 'H.i.s' -# DATETIME_FORMAT = -YEAR_MONTH_FORMAT = 'Y F' +TIME_FORMAT = 'H:i' +DATETIME_FORMAT = 'j F Y H:i' +YEAR_MONTH_FORMAT = 'F Y' MONTH_DAY_FORMAT = 'j F' -SHORT_DATE_FORMAT = 'j M Y' -# SHORT_DATETIME_FORMAT = -# FIRST_DAY_OF_WEEK = -# DATE_INPUT_FORMATS = -# TIME_INPUT_FORMATS = -# DATETIME_INPUT_FORMATS = -DECIMAL_SEPARATOR = ',' -THOUSAND_SEPARATOR = ' ' -# NUMBER_GROUPING = +SHORT_DATE_FORMAT = 'Y-m-d' +SHORT_DATETIME_FORMAT = 'Y-m-d H:i' +FIRST_DAY_OF_WEEK = 1 +DATE_INPUT_FORMATS = ( + '%Y-%m-%d', # '2006-10-25' +) +TIME_INPUT_FORMATS = ( + '%H:%i', # '14:30' +) +DATETIME_INPUT_FORMATS = ( + '%Y-%m-%d %H:%i', # '2006-10-25 14:30' +) +DECIMAL_SEPARATOR = '.' +THOUSAND_SEPARATOR = ' ' +NUMBER_GROUPING = 3