Skip to content

Commit

Permalink
Fixed #29421 -- Improved Romanian locale formats
Browse files Browse the repository at this point in the history
  • Loading branch information
mateesville93 authored and claudep committed May 20, 2018
1 parent ffb72a9 commit 392963e
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 5 deletions.
1 change: 1 addition & 0 deletions AUTHORS
Original file line number Diff line number Diff line change
Expand Up @@ -115,6 +115,7 @@ answer newbie questions, and generally made Django that much better:
Bill Fenner <fenner@gmail.com>
Bjørn Stabell <bjorn@exoweb.net>
Bo Marchman <bo.marchman@gmail.com>
Bogdan Mateescu
Bojan Mihelac <bmihelac@mihelac.org>
Bouke Haarsma <bouke@haarsma.eu>
Božidar Benko <bbenko@gmail.com>
Expand Down
24 changes: 19 additions & 5 deletions django/conf/locale/ro/formats.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,13 +9,27 @@
MONTH_DAY_FORMAT = 'j F'
SHORT_DATE_FORMAT = 'd.m.Y'
SHORT_DATETIME_FORMAT = 'd.m.Y, H:i'
# FIRST_DAY_OF_WEEK =
FIRST_DAY_OF_WEEK = 1

# The *_INPUT_FORMATS strings use the Python strftime format syntax,
# see http://docs.python.org/library/datetime.html#strftime-strptime-behavior
# DATE_INPUT_FORMATS =
# TIME_INPUT_FORMATS =
# DATETIME_INPUT_FORMATS =
DATE_INPUT_FORMATS = [
'%d.%m.%Y',
'%d.%b.%Y',
'%d %B %Y',
'%A, %d %B %Y',
]
TIME_INPUT_FORMATS = [
'%H:%M',
'%H:%M:%S',
'%H:%M:%S.%f',
]
DATETIME_INPUT_FORMATS = [
'%d.%m.%Y, %H:%M',
'%d.%m.%Y, %H:%M:%S',
'%d.%B.%Y, %H:%M',
'%d.%B.%Y, %H:%M:%S',
]
DECIMAL_SEPARATOR = ','
THOUSAND_SEPARATOR = '.'
# NUMBER_GROUPING =
NUMBER_GROUPING = 3

0 comments on commit 392963e

Please sign in to comment.