Code

Ticket #11637: sv_format.diff

File sv_format.diff, 1.0 KB (added by algestam, 4 years ago)

Swedish formats

Line 
1Index: django/conf/locale/sv/formats.py
2===================================================================
3--- django/conf/locale/sv/formats.py    (revision 12975)
4+++ django/conf/locale/sv/formats.py    (working copy)
5@@ -3,16 +3,22 @@
6 #
7 
8 DATE_FORMAT = 'j F Y'
9-TIME_FORMAT = 'H.i.s'
10-# DATETIME_FORMAT =
11-YEAR_MONTH_FORMAT = 'Y F'
12+TIME_FORMAT = 'H:i'
13+DATETIME_FORMAT = 'j F Y H:i'
14+YEAR_MONTH_FORMAT = 'F Y'
15 MONTH_DAY_FORMAT = 'j F'
16-SHORT_DATE_FORMAT = 'j M Y'
17-# SHORT_DATETIME_FORMAT =
18-# FIRST_DAY_OF_WEEK =
19-# DATE_INPUT_FORMATS =
20-# TIME_INPUT_FORMATS =
21-# DATETIME_INPUT_FORMATS =
22-DECIMAL_SEPARATOR = ','
23-THOUSAND_SEPARATOR = ' '
24-# NUMBER_GROUPING =
25+SHORT_DATE_FORMAT = 'Y-m-d'
26+SHORT_DATETIME_FORMAT = 'Y-m-d H:i'
27+FIRST_DAY_OF_WEEK = 1
28+DATE_INPUT_FORMATS = {
29+    '%Y-%m-%d',                     # '2006-10-25'
30+}
31+TIME_INPUT_FORMATS = {
32+    '%H:%i',                        # '14:30'
33+}
34+DATETIME_INPUT_FORMATS = {
35+    '%Y-%m-%d %H:%i',               # '2006-10-25 14:30'
36+}
37+DECIMAL_SEPARATOR = '.'
38+THOUSAND_SEPARATOR = ' '
39+NUMBER_GROUPING = 3