Code

Ticket #13577: polish_formats.diff

File polish_formats.diff, 1.4 KB (added by ludwik, 4 years ago)
Line 
1Index: django/conf/locale/pl/formats.py
2===================================================================
3--- django/conf/locale/pl/formats.py    2009-12-22 18:58:49.000000000 +0100
4+++ django/conf/locale/pl/formats.py    2010-05-20 17:58:11.000000000 +0200
5@@ -4,15 +4,29 @@
6 
7 DATE_FORMAT = 'j F Y'
8 TIME_FORMAT = 'H:i:s'
9-# DATETIME_FORMAT =
10+DATETIME_FORMAT = 'j F Y H:i:s'
11 YEAR_MONTH_FORMAT = 'F Y'
12 MONTH_DAY_FORMAT = 'j F'
13 SHORT_DATE_FORMAT = 'd-m-Y'
14-# SHORT_DATETIME_FORMAT =
15-# FIRST_DAY_OF_WEEK =
16-# DATE_INPUT_FORMATS =
17-# TIME_INPUT_FORMATS =
18-# DATETIME_INPUT_FORMATS =
19+SHORT_DATETIME_FORMAT = 'd-m-Y  H:i:s'
20+FIRST_DAY_OF_WEEK = 1 # Monday
21+DATE_INPUT_FORMATS = (
22+    '%d.%m.%Y', '%d.%m.%y',     # '25.10.2006', '25.10.06'
23+    '%Y-%m-%d', '%y-%m-%d',     # '2006-10-25', '06-10-25'
24+    # '%d. %B %Y', '%d. %b. %Y',  # '25. October 2006', '25. Oct. 2006'
25+)
26+TIME_INPUT_FORMATS = (
27+    '%H:%M:%S', # '14:30:59'
28+    '%H:%M',    # '14:30'
29+)
30+DATETIME_INPUT_FORMATS = (
31+    '%d.%m.%Y %H:%M:%S',    # '25.10.2006 14:30:59'
32+    '%d.%m.%Y %H:%M',       # '25.10.2006 14:30'
33+    '%d.%m.%Y',             # '25.10.2006'
34+    '%Y-%m-%d %H:%M:%S',    # '2006-10-25 14:30:59'
35+    '%Y-%m-%d %H:%M',       # '2006-10-25 14:30'
36+    '%Y-%m-%d',             # '2006-10-25'
37+)
38 DECIMAL_SEPARATOR = ','
39-THOUSAND_SEPARATOR = ' '
40-# NUMBER_GROUPING =
41+THOUSAND_SEPARATOR = '.'
42+NUMBER_GROUPING = 3
43\ No newline at end of file