Code

Ticket #11637: no_format.diff

File no_format.diff, 1.9 KB (added by jonklo, 5 years ago)

Norwegian (bokmal) formats

Line 
1Index: django/conf/locale/no/formats.py
2===================================================================
3--- django/conf/locale/no/formats.py    (revision 11401)
4+++ django/conf/locale/no/formats.py    (working copy)
5@@ -1,17 +1,37 @@
6 # This file is distributed under the same license as the Django package.
7 #
8 
9-# DATE_FORMAT =
10-# TIME_FORMAT =
11-# DATETIME_FORMAT =
12-# YEAR_MONTH_FORMAT =
13-# MONTH_DAY_FORMAT =
14-# SHORT_DATE_FORMAT =
15-# SHORT_DATETIME_FORMAT =
16-# FIRST_DAY_OF_WEEK =
17-# DATE_INPUT_FORMATS =
18-# TIME_INPUT_FORMATS =
19-# DATETIME_INPUT_FORMATS =
20-# DECIMAL_SEPARATOR =
21-# THOUSAND_SEPARATOR =
22-# NUMBER_GROUPING =
23+DATE_FORMAT = 'j. F Y'
24+TIME_FORMAT = 'H:i'
25+DATETIME_FORMAT = 'j. F Y H:i'
26+YEAR_MONTH_FORMAT = 'F Y'
27+MONTH_DAY_FORMAT = 'j. F'
28+SHORT_DATE_FORMAT = 'd.m.Y'
29+SHORT_DATETIME_FORMAT = 'd.m.Y H:i'
30+FIRST_DAY_OF_WEEK = 1 # Monday
31+DATE_INPUT_FORMATS = (
32+    '%Y-%m-%d', '%j.%m.%Y', '%j.%m.%y', # '2006-10-25', '25.10.2006', '25.10.06'
33+    '%Y-%m-%j',                         # '2006-10-25',
34+    '%j. %b %Y', '%j %b %Y',            # '25. okt 2006', '25 okt 2006'
35+    '%j. %b. %Y', '%j %b. %Y',          # '25. okt. 2006', '25 okt. 2006'
36+    '%j. %B %Y', '%j %B %Y',            # '25. oktober 2006', '25 oktober 2006'
37+)
38+TIME_INPUT_FORMATS = (
39+    '%H:%i:%S',     # '14:30:59'
40+    '%H:%i',     # '14:30'
41+)
42+DATETIME_INPUT_FORMATS = (
43+    '%Y-%m-%d %H:%i:%S',     # '2006-10-25 14:30:59'
44+    '%Y-%m-%d %H:%i',        # '2006-10-25 14:30'
45+    '%Y-%m-%d',              # '2006-10-25'
46+    '%Y-%m-%j',              # '2006-10-25'
47+    '%j.%m.%Y %H:%i:%S',     # '25.10.2006 14:30:59'
48+    '%j.%m.%Y %H:%i',        # '25.10.2006 14:30'
49+    '%j.%m.%Y',              # '25.10.2006'
50+    '%j.%m.%y %H:%i:%S',     # '25.10.06 14:30:59'
51+    '%j.%m.%y %H:%i',        # '25.10.06 14:30'
52+    '%j.%m.%y',              # '25.10.06'
53+)
54+DECIMAL_SEPARATOR = ','
55+THOUSAND_SEPARATOR = ' '
56+NUMBER_GROUPING = 3
57\ No newline at end of file