Code

Ticket #11637: 11637-cs.diff

File 11637-cs.diff, 1.4 KB (added by Honza_Kral, 5 years ago)
Line 
1diff --git a/django/conf/locale/cs/formats.py b/django/conf/locale/cs/formats.py
2index 327e77e..16ecb74 100644
3--- a/django/conf/locale/cs/formats.py
4+++ b/django/conf/locale/cs/formats.py
5@@ -4,15 +4,29 @@
6 
7 DATE_FORMAT = 'j. F Y'
8 TIME_FORMAT = 'G:i:s'
9-# DATETIME_FORMAT =
10-# YEAR_MONTH_FORMAT =
11+DATETIME_FORMAT = 'j. F Y G:i:s'
12+YEAR_MONTH_FORMAT = 'F Y'
13 MONTH_DAY_FORMAT = 'j. F'
14-SHORT_DATE_FORMAT = 'j.n.Y'
15-# SHORT_DATETIME_FORMAT =
16-# FIRST_DAY_OF_WEEK =
17-# DATE_INPUT_FORMATS =
18-# TIME_INPUT_FORMATS =
19-# DATETIME_INPUT_FORMATS =
20+SHORT_DATE_FORMAT = 'd.m.Y'
21+SHORT_DATETIME_FORMAT = 'd.m.Y G:i:s'
22+FIRST_DAY_OF_WEEK = 1 # Monday
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 =
43+THOUSAND_SEPARATOR = ' '
44+NUMBER_GROUPING = 3