Code

Ticket #16188: de_CH_formats.diff

File de_CH_formats.diff, 1.6 KB (added by sspross, 3 years ago)

adds de_CH/init.py and de_CH/formats.py

Line 
1Index: de_CH/formats.py
2===================================================================
3--- de_CH/formats.py    (revision 0)
4+++ de_CH/formats.py    (revision 0)
5@@ -0,0 +1,37 @@
6+# -*- encoding: utf-8 -*-
7+# This file is distributed under the same license as the Django package.
8+#
9+
10+# The *_FORMAT strings use the Django date format syntax,
11+# see http://docs.djangoproject.com/en/dev/ref/templates/builtins/#date
12+DATE_FORMAT = 'j. F Y'
13+TIME_FORMAT = 'H:i:s'
14+DATETIME_FORMAT = 'j. F Y H:i:s'
15+YEAR_MONTH_FORMAT = 'F Y'
16+MONTH_DAY_FORMAT = 'j. F'
17+SHORT_DATE_FORMAT = 'd.m.Y'
18+SHORT_DATETIME_FORMAT = 'd.m.Y H:i:s'
19+FIRST_DAY_OF_WEEK = 1 # Monday
20+
21+# The *_INPUT_FORMATS strings use the Python strftime format syntax,
22+# see http://docs.python.org/library/datetime.html#strftime-strptime-behavior
23+DATE_INPUT_FORMATS = (
24+    '%d.%m.%Y', '%d.%m.%y',     # '25.10.2006', '25.10.06'
25+    '%Y-%m-%d', '%y-%m-%d',     # '2006-10-25', '06-10-25'
26+    # '%d. %B %Y', '%d. %b. %Y',  # '25. October 2006', '25. Oct. 2006'
27+)
28+TIME_INPUT_FORMATS = (
29+    '%H:%M:%S', # '14:30:59'
30+    '%H:%M',    # '14:30'
31+)
32+DATETIME_INPUT_FORMATS = (
33+    '%d.%m.%Y %H:%M:%S',    # '25.10.2006 14:30:59'
34+    '%d.%m.%Y %H:%M',       # '25.10.2006 14:30'
35+    '%d.%m.%Y',             # '25.10.2006'
36+    '%Y-%m-%d %H:%M:%S',    # '2006-10-25 14:30:59'
37+    '%Y-%m-%d %H:%M',       # '2006-10-25 14:30'
38+    '%Y-%m-%d',             # '2006-10-25'
39+)
40+DECIMAL_SEPARATOR = '.'
41+THOUSAND_SEPARATOR = "'"
42+NUMBER_GROUPING = 3
43Index: de_CH/__init__.py
44===================================================================