Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

Fixed #7980 - Improved i18n framework to support locale aware formatt…

…ing (dates and numbers) and form processing.

Thanks to Marc Garcia for working on this during his Google Summer of Code 2009!

Additionally fixes #1061, #2203, #3940, #5526, #6449, #6231, #6693, #6783, #9366 and #10891.

git-svn-id: http://code.djangoproject.com/svn/django/trunk@11964 bcc190cf-cafb-0310-a4f2-bffc1f526a37
  • Loading branch information...
commit 9233d0426537615e06b78d28010d17d5a66adf44 1 parent 6632739
Jannis Leidel authored December 22, 2009

Showing 128 changed files with 2,314 additions and 356 deletions. Show diff stats Hide diff stats

  1. 74  django/conf/global_settings.py
  2. 0  django/conf/locale/__init__.py
  3. 0  django/conf/locale/ar/__init__.py
  4. 18  django/conf/locale/ar/formats.py
  5. 0  django/conf/locale/bg/__init__.py
  6. 18  django/conf/locale/bg/formats.py
  7. 0  django/conf/locale/bn/__init__.py
  8. 18  django/conf/locale/bn/formats.py
  9. 0  django/conf/locale/ca/__init__.py
  10. 30  django/conf/locale/ca/formats.py
  11. 0  django/conf/locale/cs/__init__.py
  12. 18  django/conf/locale/cs/formats.py
  13. 0  django/conf/locale/cy/__init__.py
  14. 18  django/conf/locale/cy/formats.py
  15. 0  django/conf/locale/da/__init__.py
  16. 26  django/conf/locale/da/formats.py
  17. 0  django/conf/locale/de/__init__.py
  18. 32  django/conf/locale/de/formats.py
  19. 0  django/conf/locale/el/__init__.py
  20. 18  django/conf/locale/el/formats.py
  21. 0  django/conf/locale/en/__init__.py
  22. 38  django/conf/locale/en/formats.py
  23. 0  django/conf/locale/es/__init__.py
  24. 30  django/conf/locale/es/formats.py
  25. 0  django/conf/locale/es_AR/__init__.py
  26. 18  django/conf/locale/es_AR/formats.py
  27. 0  django/conf/locale/et/__init__.py
  28. 18  django/conf/locale/et/formats.py
  29. 0  django/conf/locale/eu/__init__.py
  30. 18  django/conf/locale/eu/formats.py
  31. 0  django/conf/locale/fa/__init__.py
  32. 18  django/conf/locale/fa/formats.py
  33. 0  django/conf/locale/fi/__init__.py
  34. 18  django/conf/locale/fi/formats.py
  35. 0  django/conf/locale/fr/__init__.py
  36. 18  django/conf/locale/fr/formats.py
  37. 0  django/conf/locale/ga/__init__.py
  38. 18  django/conf/locale/ga/formats.py
  39. 0  django/conf/locale/gl/__init__.py
  40. 18  django/conf/locale/gl/formats.py
  41. 0  django/conf/locale/he/__init__.py
  42. 18  django/conf/locale/he/formats.py
  43. 0  django/conf/locale/hi/__init__.py
  44. 18  django/conf/locale/hi/formats.py
  45. 0  django/conf/locale/hr/__init__.py
  46. 18  django/conf/locale/hr/formats.py
  47. 0  django/conf/locale/hu/__init__.py
  48. 18  django/conf/locale/hu/formats.py
  49. 0  django/conf/locale/is/__init__.py
  50. 18  django/conf/locale/is/formats.py
  51. 0  django/conf/locale/it/__init__.py
  52. 18  django/conf/locale/it/formats.py
  53. 0  django/conf/locale/ja/__init__.py
  54. 18  django/conf/locale/ja/formats.py
  55. 0  django/conf/locale/ka/__init__.py
  56. 42  django/conf/locale/ka/formats.py
  57. 0  django/conf/locale/km/__init__.py
  58. 18  django/conf/locale/km/formats.py
  59. 0  django/conf/locale/kn/__init__.py
  60. 18  django/conf/locale/kn/formats.py
  61. 0  django/conf/locale/ko/__init__.py
  62. 44  django/conf/locale/ko/formats.py
  63. 0  django/conf/locale/lt/__init__.py
  64. 18  django/conf/locale/lt/formats.py
  65. 0  django/conf/locale/lv/__init__.py
  66. 18  django/conf/locale/lv/formats.py
  67. 0  django/conf/locale/mk/__init__.py
  68. 18  django/conf/locale/mk/formats.py
  69. 0  django/conf/locale/nl/__init__.py
  70. 48  django/conf/locale/nl/formats.py
  71. 0  django/conf/locale/no/__init__.py
  72. 34  django/conf/locale/no/formats.py
  73. 0  django/conf/locale/pl/__init__.py
  74. 18  django/conf/locale/pl/formats.py
  75. 0  django/conf/locale/pt/__init__.py
  76. 18  django/conf/locale/pt/formats.py
  77. 0  django/conf/locale/pt_BR/__init__.py
  78. 35  django/conf/locale/pt_BR/formats.py
  79. 0  django/conf/locale/ro/__init__.py
  80. 18  django/conf/locale/ro/formats.py
  81. 0  django/conf/locale/ru/__init__.py
  82. 18  django/conf/locale/ru/formats.py
  83. 0  django/conf/locale/sk/__init__.py
  84. 18  django/conf/locale/sk/formats.py
  85. 0  django/conf/locale/sl/__init__.py
  86. 18  django/conf/locale/sl/formats.py
  87. 0  django/conf/locale/sr/__init__.py
  88. 44  django/conf/locale/sr/formats.py
  89. 0  django/conf/locale/sr_Latn/__init__.py
  90. 44  django/conf/locale/sr_Latn/formats.py
  91. 0  django/conf/locale/sv/__init__.py
  92. 18  django/conf/locale/sv/formats.py
  93. 0  django/conf/locale/ta/__init__.py
  94. 18  django/conf/locale/ta/formats.py
  95. 0  django/conf/locale/te/__init__.py
  96. 18  django/conf/locale/te/formats.py
  97. 0  django/conf/locale/th/__init__.py
  98. 18  django/conf/locale/th/formats.py
  99. 0  django/conf/locale/tr/__init__.py
  100. 18  django/conf/locale/tr/formats.py
  101. 0  django/conf/locale/uk/__init__.py
  102. 18  django/conf/locale/uk/formats.py
  103. 0  django/conf/locale/zh_CN/__init__.py
  104. 18  django/conf/locale/zh_CN/formats.py
  105. 0  django/conf/locale/zh_TW/__init__.py
  106. 18  django/conf/locale/zh_TW/formats.py
  107. 5  django/contrib/admin/media/js/calendar.js
  108. 2  django/contrib/admin/templates/admin/object_history.html
  109. 38  django/contrib/admin/templatetags/admin_list.py
  110. 10  django/contrib/databrowse/datastructures.py
  111. 77  django/forms/extras/widgets.py
  112. 61  django/forms/fields.py
  113. 3  django/forms/widgets.py
  114. 2  django/template/__init__.py
  115. 5  django/template/debug.py
  116. 19  django/template/defaultfilters.py
  117. 97  django/utils/formats.py
  118. 42  django/utils/numberformat.py
  119. 23  django/utils/translation/trans_null.py
  120. 88  django/utils/translation/trans_real.py
  121. 29  django/views/i18n.py
  122. 12  docs/internals/deprecation.txt
  123. 221  docs/ref/settings.txt
  124. 17  docs/ref/templates/builtins.txt
  125. 45  docs/releases/1.2.txt
  126. 72  docs/topics/i18n.txt
  127. 114  tests/regressiontests/i18n/misc.py
  128. 447  tests/regressiontests/i18n/tests.py
74  django/conf/global_settings.py
@@ -103,6 +103,10 @@
103 103
 LOCALE_PATHS = ()
104 104
 LANGUAGE_COOKIE_NAME = 'django_language'
105 105
 
  106
+# If you set this to True, Django will format dates, numbers and calendars
  107
+# according to user current locale
  108
+USE_L10N = False
  109
+
106 110
 # Not-necessarily-technical managers of the site. They get broken link
107 111
 # notifications and other various e-mails.
108 112
 MANAGERS = ADMINS
@@ -265,6 +269,12 @@
265 269
 # you'd pass directly to os.chmod; see http://docs.python.org/lib/os-file-dir.html.
266 270
 FILE_UPLOAD_PERMISSIONS = None
267 271
 
  272
+# Python module path where user will place custom format definition.
  273
+# The directory where this setting is pointing should contain subdirectories
  274
+# named as the locales, containing a formats.py file
  275
+# (i.e. "myproject.locale" for myproject/locale/en/formats.py etc. use)
  276
+FORMAT_MODULE_PATH = None
  277
+
268 278
 # Default formatting for date objects. See all available format strings here:
269 279
 # http://docs.djangoproject.com/en/dev/ref/templates/builtins/#now
270 280
 DATE_FORMAT = 'N j, Y'
@@ -287,6 +297,70 @@
287 297
 # http://docs.djangoproject.com/en/dev/ref/templates/builtins/#now
288 298
 MONTH_DAY_FORMAT = 'F j'
289 299
 
  300
+# Default shortformatting for date objects. See all available format strings here:
  301
+# http://docs.djangoproject.com/en/dev/ref/templates/builtins/#now
  302
+SHORT_DATE_FORMAT = 'm/d/Y'
  303
+
  304
+# Default short formatting for datetime objects.
  305
+# See all available format strings here:
  306
+# http://docs.djangoproject.com/en/dev/ref/templates/builtins/#now
  307
+SHORT_DATETIME_FORMAT = 'm/d/Y P'
  308
+
  309
+# Default formats to be used when parsing dates from input boxes, in order
  310
+# See all available format string here:
  311
+# http://docs.python.org/library/datetime.html#strftime-behavior
  312
+# * Note that these format strings are different from the ones to display dates
  313
+DATE_INPUT_FORMATS = (
  314
+    '%Y-%m-%d', '%m/%d/%Y', '%m/%d/%y', # '2006-10-25', '10/25/2006', '10/25/06'
  315
+    '%b %d %Y', '%b %d, %Y',            # 'Oct 25 2006', 'Oct 25, 2006'
  316
+    '%d %b %Y', '%d %b, %Y',            # '25 Oct 2006', '25 Oct, 2006'
  317
+    '%B %d %Y', '%B %d, %Y',            # 'October 25 2006', 'October 25, 2006'
  318
+    '%d %B %Y', '%d %B, %Y',            # '25 October 2006', '25 October, 2006'
  319
+)
  320
+
  321
+# Default formats to be used when parsing times from input boxes, in order
  322
+# See all available format string here:
  323
+# http://docs.python.org/library/datetime.html#strftime-behavior
  324
+# * Note that these format strings are different from the ones to display dates
  325
+TIME_INPUT_FORMATS = (
  326
+    '%H:%M:%S',     # '14:30:59'
  327
+    '%H:%M',        # '14:30'
  328
+)
  329
+
  330
+# Default formats to be used when parsing dates and times from input boxes,
  331
+# in order
  332
+# See all available format string here:
  333
+# http://docs.python.org/library/datetime.html#strftime-behavior
  334
+# * Note that these format strings are different from the ones to display dates
  335
+DATETIME_INPUT_FORMATS = (
  336
+    '%Y-%m-%d %H:%M:%S',     # '2006-10-25 14:30:59'
  337
+    '%Y-%m-%d %H:%M',        # '2006-10-25 14:30'
  338
+    '%Y-%m-%d',              # '2006-10-25'
  339
+    '%m/%d/%Y %H:%M:%S',     # '10/25/2006 14:30:59'
  340
+    '%m/%d/%Y %H:%M',        # '10/25/2006 14:30'
  341
+    '%m/%d/%Y',              # '10/25/2006'
  342
+    '%m/%d/%y %H:%M:%S',     # '10/25/06 14:30:59'
  343
+    '%m/%d/%y %H:%M',        # '10/25/06 14:30'
  344
+    '%m/%d/%y',              # '10/25/06'
  345
+)
  346
+
  347
+# First day of week, to be used on calendars
  348
+# 0 means Sunday, 1 means Monday...
  349
+FIRST_DAY_OF_WEEK = 0
  350
+
  351
+# Decimal separator symbol
  352
+DECIMAL_SEPARATOR = '.'
  353
+
  354
+# Boolean that sets whether to add thousand separator when formatting numbers
  355
+USE_THOUSAND_SEPARATOR = False
  356
+
  357
+# Number of digits that will be togheter, when spliting them by THOUSAND_SEPARATOR
  358
+# 0 means no grouping, 3 means splitting by thousands...
  359
+NUMBER_GROUPING = 0
  360
+
  361
+# Thousand separator symbol
  362
+THOUSAND_SEPARATOR = ','
  363
+
290 364
 # Do you want to manage transactions manually?
291 365
 # Hint: you really don't!
292 366
 TRANSACTIONS_MANAGED = False
0  django/conf/locale/__init__.py
No changes.
0  django/conf/locale/ar/__init__.py
No changes.
18  django/conf/locale/ar/formats.py
... ...
@@ -0,0 +1,18 @@
  1
+# -*- encoding: utf-8 -*-
  2
+# This file is distributed under the same license as the Django package.
  3
+#
  4
+
  5
+DATE_FORMAT = 'j F، Y'
  6
+TIME_FORMAT = 'g:i:s A'
  7
+# DATETIME_FORMAT = 
  8
+YEAR_MONTH_FORMAT = 'F Y'
  9
+MONTH_DAY_FORMAT = 'j F'
  10
+SHORT_DATE_FORMAT = 'd‏/m‏/Y'
  11
+# SHORT_DATETIME_FORMAT = 
  12
+# FIRST_DAY_OF_WEEK = 
  13
+# DATE_INPUT_FORMATS = 
  14
+# TIME_INPUT_FORMATS = 
  15
+# DATETIME_INPUT_FORMATS = 
  16
+DECIMAL_SEPARATOR = ','
  17
+THOUSAND_SEPARATOR = '.'
  18
+# NUMBER_GROUPING = 
0  django/conf/locale/bg/__init__.py
No changes.
18  django/conf/locale/bg/formats.py
... ...
@@ -0,0 +1,18 @@
  1
+# -*- encoding: utf-8 -*-
  2
+# This file is distributed under the same license as the Django package.
  3
+#
  4
+
  5
+DATE_FORMAT = 'd F Y'
  6
+TIME_FORMAT = 'H:i:s'
  7
+# DATETIME_FORMAT = 
  8
+# YEAR_MONTH_FORMAT = 
  9
+MONTH_DAY_FORMAT = 'j F'
  10
+SHORT_DATE_FORMAT = 'd.m.Y'
  11
+# SHORT_DATETIME_FORMAT = 
  12
+# FIRST_DAY_OF_WEEK = 
  13
+# DATE_INPUT_FORMATS = 
  14
+# TIME_INPUT_FORMATS = 
  15
+# DATETIME_INPUT_FORMATS = 
  16
+DECIMAL_SEPARATOR = ','
  17
+THOUSAND_SEPARATOR = ' '
  18
+# NUMBER_GROUPING = 
0  django/conf/locale/bn/__init__.py
No changes.
18  django/conf/locale/bn/formats.py
... ...
@@ -0,0 +1,18 @@
  1
+# -*- encoding: utf-8 -*-
  2
+# This file is distributed under the same license as the Django package.
  3
+#
  4
+
  5
+DATE_FORMAT = 'j F, Y'
  6
+TIME_FORMAT = 'g:i:s A'
  7
+# DATETIME_FORMAT = 
  8
+YEAR_MONTH_FORMAT = 'F Y'
  9
+MONTH_DAY_FORMAT = 'j F'
  10
+SHORT_DATE_FORMAT = 'j M, Y'
  11
+# SHORT_DATETIME_FORMAT = 
  12
+# FIRST_DAY_OF_WEEK = 
  13
+# DATE_INPUT_FORMATS = 
  14
+# TIME_INPUT_FORMATS = 
  15
+# DATETIME_INPUT_FORMATS = 
  16
+DECIMAL_SEPARATOR = '.'
  17
+THOUSAND_SEPARATOR = ','
  18
+# NUMBER_GROUPING = 
0  django/conf/locale/ca/__init__.py
No changes.
30  django/conf/locale/ca/formats.py
... ...
@@ -0,0 +1,30 @@
  1
+# -*- encoding: utf-8 -*-
  2
+# This file is distributed under the same license as the Django package.
  3
+#
  4
+
  5
+DATE_FORMAT = 'j \de F \de Y'
  6
+TIME_FORMAT = 'G:i:s'
  7
+DATETIME_FORMAT = 'j \de F \de Y \\a \le\s G:i'
  8
+YEAR_MONTH_FORMAT = 'F \de\l Y'
  9
+MONTH_DAY_FORMAT = 'j \de F'
  10
+SHORT_DATE_FORMAT = 'd/m/Y'
  11
+SHORT_DATETIME_FORMAT = 'd/m/Y G:i'
  12
+FIRST_DAY_OF_WEEK = 1 # Monday
  13
+DATE_INPUT_FORMATS = (
  14
+    # '31/12/2009', '31/12/09'
  15
+    '%d/%m/%Y', '%d/%m/%y'
  16
+)
  17
+TIME_INPUT_FORMATS = (
  18
+    # '14:30:59', '14:30'
  19
+    '%H:%M:%S', '%H:%M'
  20
+)
  21
+DATETIME_INPUT_FORMATS = (
  22
+    '%d/%m/%Y %H:%M:%S',
  23
+    '%d/%m/%Y %H:%M',
  24
+    '%d/%m/%y %H:%M:%S',
  25
+    '%d/%m/%y %H:%M',
  26
+)
  27
+DECIMAL_SEPARATOR = ','
  28
+THOUSAND_SEPARATOR = '.'
  29
+NUMBER_GROUPING = 3
  30
+
0  django/conf/locale/cs/__init__.py
No changes.
18  django/conf/locale/cs/formats.py
... ...
@@ -0,0 +1,18 @@
  1
+# -*- encoding: utf-8 -*-
  2
+# This file is distributed under the same license as the Django package.
  3
+#
  4
+
  5
+DATE_FORMAT = 'j. F Y'
  6
+TIME_FORMAT = 'G:i:s'
  7
+# DATETIME_FORMAT = 
  8
+# YEAR_MONTH_FORMAT = 
  9
+MONTH_DAY_FORMAT = 'j. F'
  10
+SHORT_DATE_FORMAT = 'j.n.Y'
  11
+# SHORT_DATETIME_FORMAT = 
  12
+# FIRST_DAY_OF_WEEK = 
  13
+# DATE_INPUT_FORMATS = 
  14
+# TIME_INPUT_FORMATS = 
  15
+# DATETIME_INPUT_FORMATS = 
  16
+DECIMAL_SEPARATOR = ','
  17
+THOUSAND_SEPARATOR = ' '
  18
+# NUMBER_GROUPING = 
0  django/conf/locale/cy/__init__.py
No changes.
18  django/conf/locale/cy/formats.py
... ...
@@ -0,0 +1,18 @@
  1
+# -*- encoding: utf-8 -*-
  2
+# This file is distributed under the same license as the Django package.
  3
+#
  4
+
  5
+DATE_FORMAT = 'd F Y'
  6
+TIME_FORMAT = 'g:i:s A'
  7
+# DATETIME_FORMAT = 
  8
+# YEAR_MONTH_FORMAT = 
  9
+# MONTH_DAY_FORMAT = 
  10
+SHORT_DATE_FORMAT = 'j M Y'
  11
+# SHORT_DATETIME_FORMAT = 
  12
+# FIRST_DAY_OF_WEEK = 
  13
+# DATE_INPUT_FORMATS = 
  14
+# TIME_INPUT_FORMATS = 
  15
+# DATETIME_INPUT_FORMATS = 
  16
+# DECIMAL_SEPARATOR = 
  17
+# THOUSAND_SEPARATOR = 
  18
+# NUMBER_GROUPING = 
0  django/conf/locale/da/__init__.py
No changes.
26  django/conf/locale/da/formats.py
... ...
@@ -0,0 +1,26 @@
  1
+# -*- encoding: utf-8 -*-
  2
+# This file is distributed under the same license as the Django package.
  3
+#
  4
+
  5
+DATE_FORMAT = 'j. F Y'
  6
+TIME_FORMAT = 'H:i'
  7
+DATETIME_FORMAT = 'j. F Y H:i'
  8
+YEAR_MONTH_FORMAT = 'F Y'
  9
+MONTH_DAY_FORMAT = 'j. F'
  10
+SHORT_DATE_FORMAT = 'd.m.Y'
  11
+SHORT_DATETIME_FORMAT = 'd.m.Y H:i'
  12
+FIRST_DAY_OF_WEEK = 1
  13
+DATE_INPUT_FORMATS = (
  14
+    '%d.%m.%Y', 			# '25.10.2006'
  15
+)
  16
+TIME_INPUT_FORMATS = (
  17
+    '%H:%M:%S',     			# '14:30:59'
  18
+    '%H:%M',        			# '14:30'
  19
+)
  20
+DATETIME_INPUT_FORMATS = (
  21
+    '%d.%m.%Y %H:%M:%S',     		# '25.10.2006 14:30:59'
  22
+    '%d.%m.%Y %H:%M',    	    	# '25.10.2006 14:30'
  23
+)
  24
+DECIMAL_SEPARATOR = ','
  25
+THOUSAND_SEPARATOR = '.'
  26
+NUMBER_GROUPING = 3
0  django/conf/locale/de/__init__.py
No changes.
32  django/conf/locale/de/formats.py
... ...
@@ -0,0 +1,32 @@
  1
+# -*- encoding: utf-8 -*-
  2
+# This file is distributed under the same license as the Django package.
  3
+#
  4
+
  5
+DATE_FORMAT = 'j. F Y'
  6
+TIME_FORMAT = 'H:i:s'
  7
+DATETIME_FORMAT = 'j. F Y H:i:s'
  8
+YEAR_MONTH_FORMAT = 'F Y'
  9
+MONTH_DAY_FORMAT = 'j. F'
  10
+SHORT_DATE_FORMAT = 'd.m.Y'
  11
+SHORT_DATETIME_FORMAT = 'd.m.Y H:i:s'
  12
+FIRST_DAY_OF_WEEK = 1 # Monday
  13
+DATE_INPUT_FORMATS = (
  14
+    '%d.%m.%Y', '%d.%m.%y',     # '25.10.2006', '25.10.06'
  15
+    '%Y-%m-%d', '%y-%m-%d',     # '2006-10-25', '06-10-25'
  16
+    '%d. %B %Y', '%d. %b. %Y',  # '25. October 2006', '25. Oct. 2006'
  17
+)
  18
+TIME_INPUT_FORMATS = (
  19
+    '%H:%M:%S', # '14:30:59'
  20
+    '%H:%M',    # '14:30'
  21
+)
  22
+DATETIME_INPUT_FORMATS = (
  23
+    '%d.%m.%Y %H:%M:%S',    # '25.10.2006 14:30:59'
  24
+    '%d.%m.%Y %H:%M',       # '25.10.2006 14:30'
  25
+    '%d.%m.%Y',             # '25.10.2006'
  26
+    '%Y-%m-%d %H:%M:%S',    # '2006-10-25 14:30:59'
  27
+    '%Y-%m-%d %H:%M',       # '2006-10-25 14:30'
  28
+    '%Y-%m-%d',             # '2006-10-25'
  29
+)
  30
+DECIMAL_SEPARATOR = ','
  31
+THOUSAND_SEPARATOR = '.'
  32
+NUMBER_GROUPING = 3
0  django/conf/locale/el/__init__.py
No changes.
18  django/conf/locale/el/formats.py
... ...
@@ -0,0 +1,18 @@
  1
+# -*- encoding: utf-8 -*-
  2
+# This file is distributed under the same license as the Django package.
  3
+#
  4
+
  5
+DATE_FORMAT = 'd F Y'
  6
+TIME_FORMAT = 'g:i:s A'
  7
+# DATETIME_FORMAT = 
  8
+YEAR_MONTH_FORMAT = 'F Y'
  9
+MONTH_DAY_FORMAT = 'j F'
  10
+SHORT_DATE_FORMAT = 'd M Y'
  11
+# SHORT_DATETIME_FORMAT = 
  12
+# FIRST_DAY_OF_WEEK = 
  13
+# DATE_INPUT_FORMATS = 
  14
+# TIME_INPUT_FORMATS = 
  15
+# DATETIME_INPUT_FORMATS = 
  16
+DECIMAL_SEPARATOR = ','
  17
+THOUSAND_SEPARATOR = '.'
  18
+# NUMBER_GROUPING = 
0  django/conf/locale/en/__init__.py
No changes.
38  django/conf/locale/en/formats.py
... ...
@@ -0,0 +1,38 @@
  1
+# -*- encoding: utf-8 -*-
  2
+# This file is distributed under the same license as the Django package.
  3
+#
  4
+
  5
+DATE_FORMAT = 'N j, Y'
  6
+TIME_FORMAT = 'P'
  7
+DATETIME_FORMAT = 'N j, Y, P'
  8
+YEAR_MONTH_FORMAT = 'F Y'
  9
+MONTH_DAY_FORMAT = 'F j'
  10
+SHORT_DATE_FORMAT = 'm/d/Y'
  11
+SHORT_DATETIME_FORMAT = 'm/d/Y P'
  12
+FIRST_DAY_OF_WEEK = 0 # Sunday
  13
+DATE_INPUT_FORMATS = (
  14
+    '%Y-%m-%d', '%m/%d/%Y', '%m/%d/%y', # '2006-10-25', '10/25/2006', '10/25/06'
  15
+    '%b %d %Y', '%b %d, %Y',            # 'Oct 25 2006', 'Oct 25, 2006'
  16
+    '%d %b %Y', '%d %b, %Y',            # '25 Oct 2006', '25 Oct, 2006'
  17
+    '%B %d %Y', '%B %d, %Y',            # 'October 25 2006', 'October 25, 2006'
  18
+    '%d %B %Y', '%d %B, %Y',            # '25 October 2006', '25 October, 2006'
  19
+)
  20
+TIME_INPUT_FORMATS = (
  21
+    '%H:%M:%S',     # '14:30:59'
  22
+    '%H:%M',        # '14:30'
  23
+)
  24
+DATETIME_INPUT_FORMATS = (
  25
+    '%Y-%m-%d %H:%M:%S',     # '2006-10-25 14:30:59'
  26
+    '%Y-%m-%d %H:%M',        # '2006-10-25 14:30'
  27
+    '%Y-%m-%d',              # '2006-10-25'
  28
+    '%m/%d/%Y %H:%M:%S',     # '10/25/2006 14:30:59'
  29
+    '%m/%d/%Y %H:%M',        # '10/25/2006 14:30'
  30
+    '%m/%d/%Y',              # '10/25/2006'
  31
+    '%m/%d/%y %H:%M:%S',     # '10/25/06 14:30:59'
  32
+    '%m/%d/%y %H:%M',        # '10/25/06 14:30'
  33
+    '%m/%d/%y',              # '10/25/06'
  34
+)
  35
+DECIMAL_SEPARATOR = '.'
  36
+THOUSAND_SEPARATOR = ','
  37
+NUMBER_GROUPING = 3
  38
+
0  django/conf/locale/es/__init__.py
No changes.
30  django/conf/locale/es/formats.py
... ...
@@ -0,0 +1,30 @@
  1
+# -*- encoding: utf-8 -*-
  2
+# This file is distributed under the same license as the Django package.
  3
+#
  4
+
  5
+DATE_FORMAT = 'j \de F \de Y'
  6
+TIME_FORMAT = 'H:i:s'
  7
+DATETIME_FORMAT = 'j \de F \de Y \a \l\a\s H:i'
  8
+YEAR_MONTH_FORMAT = 'F \de Y'
  9
+MONTH_DAY_FORMAT = 'j \de F'
  10
+SHORT_DATE_FORMAT = 'd/m/Y'
  11
+SHORT_DATETIME_FORMAT = 'd/m/Y H:i'
  12
+FIRST_DAY_OF_WEEK = 1 # Monday
  13
+DATE_INPUT_FORMATS = (
  14
+    # '31/12/2009', '31/12/09'
  15
+    '%d/%m/%Y', '%d/%m/%y'
  16
+)
  17
+TIME_INPUT_FORMATS = (
  18
+    # '14:30:59', '14:30'
  19
+    '%H:%M:%S', '%H:%M'
  20
+)
  21
+DATETIME_INPUT_FORMATS = (
  22
+    '%d/%m/%Y %H:%M:%S',
  23
+    '%d/%m/%Y %H:%M',
  24
+    '%d/%m/%y %H:%M:%S',
  25
+    '%d/%m/%y %H:%M',
  26
+)
  27
+DECIMAL_SEPARATOR = ','
  28
+THOUSAND_SEPARATOR = '.'
  29
+NUMBER_GROUPING = 3
  30
+
0  django/conf/locale/es_AR/__init__.py
No changes.
18  django/conf/locale/es_AR/formats.py
... ...
@@ -0,0 +1,18 @@
  1
+# -*- encoding: utf-8 -*-
  2
+# This file is distributed under the same license as the Django package.
  3
+#
  4
+
  5
+# DATE_FORMAT = 
  6
+# TIME_FORMAT = 
  7
+# DATETIME_FORMAT = 
  8
+# YEAR_MONTH_FORMAT = 
  9
+# MONTH_DAY_FORMAT = 
  10
+# SHORT_DATE_FORMAT = 
  11
+# SHORT_DATETIME_FORMAT = 
  12
+# FIRST_DAY_OF_WEEK = 
  13
+# DATE_INPUT_FORMATS = 
  14
+# TIME_INPUT_FORMATS = 
  15
+# DATETIME_INPUT_FORMATS = 
  16
+# DECIMAL_SEPARATOR = 
  17
+# THOUSAND_SEPARATOR = 
  18
+# NUMBER_GROUPING = 
0  django/conf/locale/et/__init__.py
No changes.
18  django/conf/locale/et/formats.py
... ...
@@ -0,0 +1,18 @@
  1
+# -*- encoding: utf-8 -*-
  2
+# This file is distributed under the same license as the Django package.
  3
+#
  4
+
  5
+DATE_FORMAT = 'j F Y'
  6
+TIME_FORMAT = 'G:i:s'
  7
+# DATETIME_FORMAT = 
  8
+# YEAR_MONTH_FORMAT = 
  9
+MONTH_DAY_FORMAT = 'j F'
  10
+SHORT_DATE_FORMAT = 'd.m.Y'
  11
+# SHORT_DATETIME_FORMAT = 
  12
+# FIRST_DAY_OF_WEEK = 
  13
+# DATE_INPUT_FORMATS = 
  14
+# TIME_INPUT_FORMATS = 
  15
+# DATETIME_INPUT_FORMATS = 
  16
+DECIMAL_SEPARATOR = ','
  17
+THOUSAND_SEPARATOR = ' '
  18
+# NUMBER_GROUPING = 
0  django/conf/locale/eu/__init__.py
No changes.
18  django/conf/locale/eu/formats.py
... ...
@@ -0,0 +1,18 @@
  1
+# -*- encoding: utf-8 -*-
  2
+# This file is distributed under the same license as the Django package.
  3
+#
  4
+
  5
+DATE_FORMAT = 'Yeko M\re\n d\a'
  6
+TIME_FORMAT = 'H:i:s'
  7
+# DATETIME_FORMAT = 
  8
+# YEAR_MONTH_FORMAT = 
  9
+# MONTH_DAY_FORMAT = 
  10
+SHORT_DATE_FORMAT = 'Y M j'
  11
+# SHORT_DATETIME_FORMAT = 
  12
+# FIRST_DAY_OF_WEEK = 
  13
+# DATE_INPUT_FORMATS = 
  14
+# TIME_INPUT_FORMATS = 
  15
+# DATETIME_INPUT_FORMATS = 
  16
+DECIMAL_SEPARATOR = ','
  17
+THOUSAND_SEPARATOR = '.'
  18
+# NUMBER_GROUPING = 
0  django/conf/locale/fa/__init__.py
No changes.
18  django/conf/locale/fa/formats.py
... ...
@@ -0,0 +1,18 @@
  1
+# -*- encoding: utf-8 -*-
  2
+# This file is distributed under the same license as the Django package.
  3
+#
  4
+
  5
+DATE_FORMAT = 'j F Y'
  6
+TIME_FORMAT = 'G:i:s'
  7
+DATETIME_FORMAT = 'j F Y، ساعت G:i:s'
  8
+YEAR_MONTH_FORMAT = 'F Y'
  9
+MONTH_DAY_FORMAT = 'j F'
  10
+SHORT_DATE_FORMAT = 'Y/n/j'
  11
+SHORT_DATETIME_FORMAT = 'Y/n/j،‏ G:i:s'
  12
+# FIRST_DAY_OF_WEEK = 
  13
+# DATE_INPUT_FORMATS = 
  14
+# TIME_INPUT_FORMATS = 
  15
+# DATETIME_INPUT_FORMATS = 
  16
+DECIMAL_SEPARATOR = ','
  17
+THOUSAND_SEPARATOR = '.'
  18
+# NUMBER_GROUPING = 
0  django/conf/locale/fi/__init__.py
No changes.
18  django/conf/locale/fi/formats.py
... ...
@@ -0,0 +1,18 @@
  1
+# -*- encoding: utf-8 -*-
  2
+# This file is distributed under the same license as the Django package.
  3
+#
  4
+
  5
+DATE_FORMAT = 'j. F Y'
  6
+TIME_FORMAT = 'G.i.s'
  7
+# DATETIME_FORMAT = 
  8
+YEAR_MONTH_FORMAT = 'F Y'
  9
+MONTH_DAY_FORMAT = 'j. F'
  10
+SHORT_DATE_FORMAT = 'j.n.Y'
  11
+# SHORT_DATETIME_FORMAT = 
  12
+# FIRST_DAY_OF_WEEK = 
  13
+# DATE_INPUT_FORMATS = 
  14
+# TIME_INPUT_FORMATS = 
  15
+# DATETIME_INPUT_FORMATS = 
  16
+DECIMAL_SEPARATOR = ','
  17
+THOUSAND_SEPARATOR = ' '
  18
+# NUMBER_GROUPING = 
0  django/conf/locale/fr/__init__.py
No changes.
18  django/conf/locale/fr/formats.py
... ...
@@ -0,0 +1,18 @@
  1
+# -*- encoding: utf-8 -*-
  2
+# This file is distributed under the same license as the Django package.
  3
+#
  4
+
  5
+DATE_FORMAT = 'j F Y'
  6
+TIME_FORMAT = 'H:i:s'
  7
+DATETIME_FORMAT = 'j F Y H:i:s'
  8
+YEAR_MONTH_FORMAT = 'F Y'
  9
+MONTH_DAY_FORMAT = 'j F'
  10
+SHORT_DATE_FORMAT = 'j M Y'
  11
+SHORT_DATETIME_FORMAT = 'j M Y H:i:s'
  12
+# FIRST_DAY_OF_WEEK = 
  13
+# DATE_INPUT_FORMATS = 
  14
+# TIME_INPUT_FORMATS = 
  15
+# DATETIME_INPUT_FORMATS = 
  16
+DECIMAL_SEPARATOR = ','
  17
+THOUSAND_SEPARATOR = ' '
  18
+# NUMBER_GROUPING = 
0  django/conf/locale/ga/__init__.py
No changes.
18  django/conf/locale/ga/formats.py
... ...
@@ -0,0 +1,18 @@
  1
+# -*- encoding: utf-8 -*-
  2
+# This file is distributed under the same license as the Django package.
  3
+#
  4
+
  5
+DATE_FORMAT = 'j F Y'
  6
+TIME_FORMAT = 'H:i:s'
  7
+# DATETIME_FORMAT = 
  8
+# YEAR_MONTH_FORMAT = 
  9
+MONTH_DAY_FORMAT = 'j F'
  10
+SHORT_DATE_FORMAT = 'j M Y'
  11
+# SHORT_DATETIME_FORMAT = 
  12
+# FIRST_DAY_OF_WEEK = 
  13
+# DATE_INPUT_FORMATS = 
  14
+# TIME_INPUT_FORMATS = 
  15
+# DATETIME_INPUT_FORMATS = 
  16
+DECIMAL_SEPARATOR = '.'
  17
+THOUSAND_SEPARATOR = ','
  18
+# NUMBER_GROUPING = 
0  django/conf/locale/gl/__init__.py
No changes.
18  django/conf/locale/gl/formats.py
... ...
@@ -0,0 +1,18 @@
  1
+# -*- encoding: utf-8 -*-
  2
+# This file is distributed under the same license as the Django package.
  3
+#
  4
+
  5
+DATE_FORMAT = 'd F Y'
  6
+TIME_FORMAT = 'H:i:s'
  7
+# DATETIME_FORMAT = 
  8
+YEAR_MONTH_FORMAT = 'F Y'
  9
+MONTH_DAY_FORMAT = 'j F'
  10
+SHORT_DATE_FORMAT = 'j M, Y'
  11
+# SHORT_DATETIME_FORMAT = 
  12
+# FIRST_DAY_OF_WEEK = 
  13
+# DATE_INPUT_FORMATS = 
  14
+# TIME_INPUT_FORMATS = 
  15
+# DATETIME_INPUT_FORMATS = 
  16
+DECIMAL_SEPARATOR = ','
  17
+THOUSAND_SEPARATOR = '.'
  18
+# NUMBER_GROUPING = 
0  django/conf/locale/he/__init__.py
No changes.
18  django/conf/locale/he/formats.py
... ...
@@ -0,0 +1,18 @@
  1
+# -*- encoding: utf-8 -*-
  2
+# This file is distributed under the same license as the Django package.
  3
+#
  4
+
  5
+DATE_FORMAT = 'j בF Y'
  6
+TIME_FORMAT = 'H:i:s'
  7
+DATETIME_FORMAT = 'j בF Y H:i:s'
  8
+YEAR_MONTH_FORMAT = 'F Y'
  9
+MONTH_DAY_FORMAT = 'j בF'
  10
+SHORT_DATE_FORMAT = 'd/m/Y'
  11
+SHORT_DATETIME_FORMAT = 'd/m/Y H:i:s'
  12
+# FIRST_DAY_OF_WEEK = 
  13
+# DATE_INPUT_FORMATS = 
  14
+# TIME_INPUT_FORMATS = 
  15
+# DATETIME_INPUT_FORMATS = 
  16
+DECIMAL_SEPARATOR = '.'
  17
+THOUSAND_SEPARATOR = ','
  18
+# NUMBER_GROUPING = 
0  django/conf/locale/hi/__init__.py
No changes.
18  django/conf/locale/hi/formats.py
... ...
@@ -0,0 +1,18 @@
  1
+# -*- encoding: utf-8 -*-
  2
+# This file is distributed under the same license as the Django package.
  3
+#
  4
+
  5
+DATE_FORMAT = 'j F Y'
  6
+TIME_FORMAT = 'g:i:s A'
  7
+# DATETIME_FORMAT = 
  8
+# YEAR_MONTH_FORMAT = 
  9
+MONTH_DAY_FORMAT = 'j F'
  10
+SHORT_DATE_FORMAT = 'd-m-Y'
  11
+# SHORT_DATETIME_FORMAT = 
  12
+# FIRST_DAY_OF_WEEK = 
  13
+# DATE_INPUT_FORMATS = 
  14
+# TIME_INPUT_FORMATS = 
  15
+# DATETIME_INPUT_FORMATS = 
  16
+DECIMAL_SEPARATOR = '.'
  17
+THOUSAND_SEPARATOR = ','
  18
+# NUMBER_GROUPING = 
0  django/conf/locale/hr/__init__.py
No changes.
18  django/conf/locale/hr/formats.py
... ...
@@ -0,0 +1,18 @@
  1
+# -*- encoding: utf-8 -*-
  2
+# This file is distributed under the same license as the Django package.
  3
+#
  4
+
  5
+DATE_FORMAT = 'j. F Y.'
  6
+TIME_FORMAT = 'H:i:s'
  7
+# DATETIME_FORMAT = 
  8
+YEAR_MONTH_FORMAT = 'F Y.'
  9
+MONTH_DAY_FORMAT = 'j. F'
  10
+SHORT_DATE_FORMAT = 'j.n.Y.'
  11
+# SHORT_DATETIME_FORMAT = 
  12
+# FIRST_DAY_OF_WEEK = 
  13
+# DATE_INPUT_FORMATS = 
  14
+# TIME_INPUT_FORMATS = 
  15
+# DATETIME_INPUT_FORMATS = 
  16
+DECIMAL_SEPARATOR = ','
  17
+THOUSAND_SEPARATOR = '.'
  18
+# NUMBER_GROUPING = 
0  django/conf/locale/hu/__init__.py
No changes.
18  django/conf/locale/hu/formats.py
... ...
@@ -0,0 +1,18 @@
  1
+# -*- encoding: utf-8 -*-
  2
+# This file is distributed under the same license as the Django package.
  3
+#
  4
+
  5
+DATE_FORMAT = 'Y. F j.'
  6
+TIME_FORMAT = 'G:i:s'
  7
+# DATETIME_FORMAT = 
  8
+# YEAR_MONTH_FORMAT = 
  9
+MONTH_DAY_FORMAT = 'F j.'
  10
+SHORT_DATE_FORMAT = 'Y.m.d.'
  11
+# SHORT_DATETIME_FORMAT = 
  12
+# FIRST_DAY_OF_WEEK = 
  13
+# DATE_INPUT_FORMATS = 
  14
+# TIME_INPUT_FORMATS = 
  15
+# DATETIME_INPUT_FORMATS = 
  16
+DECIMAL_SEPARATOR = ','
  17
+THOUSAND_SEPARATOR = ' '
  18
+# NUMBER_GROUPING = 
0  django/conf/locale/is/__init__.py
No changes.
18  django/conf/locale/is/formats.py
... ...
@@ -0,0 +1,18 @@
  1
+# -*- encoding: utf-8 -*-
  2
+# This file is distributed under the same license as the Django package.
  3
+#
  4
+
  5
+DATE_FORMAT = 'j. F Y'
  6
+TIME_FORMAT = 'H:i:s'
  7
+# DATETIME_FORMAT = 
  8
+YEAR_MONTH_FORMAT = 'F Y'
  9
+MONTH_DAY_FORMAT = 'j. F'
  10
+SHORT_DATE_FORMAT = 'j.n.Y'
  11
+# SHORT_DATETIME_FORMAT = 
  12
+# FIRST_DAY_OF_WEEK = 
  13
+# DATE_INPUT_FORMATS = 
  14
+# TIME_INPUT_FORMATS = 
  15
+# DATETIME_INPUT_FORMATS = 
  16
+DECIMAL_SEPARATOR = ','
  17
+THOUSAND_SEPARATOR = '.'
  18
+# NUMBER_GROUPING = 
0  django/conf/locale/it/__init__.py
No changes.
18  django/conf/locale/it/formats.py
... ...
@@ -0,0 +1,18 @@
  1
+# -*- encoding: utf-8 -*-
  2
+# This file is distributed under the same license as the Django package.
  3
+#
  4
+
  5
+DATE_FORMAT = 'd F Y'
  6
+TIME_FORMAT = 'H.i.s'
  7
+# DATETIME_FORMAT = 
  8
+YEAR_MONTH_FORMAT = 'F Y'
  9
+MONTH_DAY_FORMAT = 'j F'
  10
+SHORT_DATE_FORMAT = 'd/M/Y'
  11
+# SHORT_DATETIME_FORMAT = 
  12
+# FIRST_DAY_OF_WEEK = 
  13
+# DATE_INPUT_FORMATS = 
  14
+# TIME_INPUT_FORMATS = 
  15
+# DATETIME_INPUT_FORMATS = 
  16
+DECIMAL_SEPARATOR = ','
  17
+THOUSAND_SEPARATOR = '.'
  18
+# NUMBER_GROUPING = 
0  django/conf/locale/ja/__init__.py
No changes.
18  django/conf/locale/ja/formats.py
... ...
@@ -0,0 +1,18 @@
  1
+# -*- encoding: utf-8 -*-
  2
+# This file is distributed under the same license as the Django package.
  3
+#
  4
+
  5
+DATE_FORMAT = 'Y年n月j日'
  6
+TIME_FORMAT = 'G:i:s'
  7
+DATETIME_FORMAT = 'Y年n月j日G:i:s'
  8
+YEAR_MONTH_FORMAT = 'Y年n月'
  9
+MONTH_DAY_FORMAT = 'n月j日'
  10
+SHORT_DATE_FORMAT = 'Y/m/d'
  11
+SHORT_DATETIME_FORMAT = 'Y/m/d G:i:s'
  12
+# FIRST_DAY_OF_WEEK = 
  13
+# DATE_INPUT_FORMATS = 
  14
+# TIME_INPUT_FORMATS = 
  15
+# DATETIME_INPUT_FORMATS = 
  16
+DECIMAL_SEPARATOR = '.'
  17
+THOUSAND_SEPARATOR = ','
  18
+# NUMBER_GROUPING = 
0  django/conf/locale/ka/__init__.py
No changes.
42  django/conf/locale/ka/formats.py
... ...
@@ -0,0 +1,42 @@
  1
+# -*- encoding: utf-8 -*-
  2
+# This file is distributed under the same license as the Django package.
  3
+#
  4
+
  5
+DATE_FORMAT = 'l, j F, Y'
  6
+TIME_FORMAT = 'h:i:s a'
  7
+DATETIME_FORMAT = 'j F, Y h:i:s a'
  8
+YEAR_MONTH_FORMAT = 'F, Y'
  9
+MONTH_DAY_FORMAT = 'j F'
  10
+SHORT_DATE_FORMAT = 'j.M.Y'
  11
+SHORT_DATETIME_FORMAT = 'j.M.Y H:i:s'
  12
+FIRST_DAY_OF_WEEK = 1 # (Monday)
  13
+DATE_INPUT_FORMATS = (
  14
+    '%Y-%m-%d', '%m/%d/%Y', '%m/%d/%y',     # '2006-10-25', '10/25/2006', '10/25/06'
  15
+    '%d %b %Y', '%d %b, %Y', '%d %b. %Y',   # '25 Oct 2006', '25 Oct, 2006', '25 Oct. 2006'
  16
+    '%d %B %Y', '%d %B, %Y',                # '25 October 2006', '25 October, 2006'
  17
+    '%d.%m.%Y', '%d.%m.%y',                 # '25.10.2006', '25.10.06'
  18
+)
  19
+TIME_INPUT_FORMATS = (
  20
+    '%H:%M:%S',     # '14:30:59'
  21
+    '%H:%M',        # '14:30'
  22
+)
  23
+DATETIME_INPUT_FORMATS = (
  24
+    '%Y-%m-%d %H:%M:%S',     # '2006-10-25 14:30:59'
  25
+    '%Y-%m-%d %H:%M',        # '2006-10-25 14:30'
  26
+    '%Y-%m-%d',              # '2006-10-25'
  27
+    '%d.%m.%Y %H:%M:%S',     # '25.10.2006 14:30:59'
  28
+    '%d.%m.%Y %H:%M',        # '25.10.2006 14:30'
  29
+    '%d.%m.%Y',              # '25.10.2006'
  30
+    '%d.%m.%y %H:%M:%S',     # '25.10.06 14:30:59'
  31
+    '%d.%m.%y %H:%M',        # '25.10.06 14:30'
  32
+    '%d.%m.%y',              # '25.10.06'
  33
+    '%m/%d/%Y %H:%M:%S',     # '10/25/2006 14:30:59'
  34
+    '%m/%d/%Y %H:%M',        # '10/25/2006 14:30'
  35
+    '%m/%d/%Y',              # '10/25/2006'
  36
+    '%m/%d/%y %H:%M:%S',     # '10/25/06 14:30:59'
  37
+    '%m/%d/%y %H:%M',        # '10/25/06 14:30'
  38
+    '%m/%d/%y',              # '10/25/06'
  39
+)
  40
+DECIMAL_SEPARATOR = '.'
  41
+THOUSAND_SEPARATOR = " "
  42
+NUMBER_GROUPING = 3
0  django/conf/locale/km/__init__.py
No changes.
18  django/conf/locale/km/formats.py
... ...
@@ -0,0 +1,18 @@
  1
+# -*- encoding: utf-8 -*-
  2
+# This file is distributed under the same license as the Django package.
  3
+#
  4
+
  5
+DATE_FORMAT = 'j ខែ F ឆ្នាំ Y'
  6
+TIME_FORMAT = 'G:i:s'
  7
+DATETIME_FORMAT = 'j ខែ F ឆ្នាំ Y, G:i:s'
  8
+# YEAR_MONTH_FORMAT = 
  9
+MONTH_DAY_FORMAT = 'j F'
  10
+SHORT_DATE_FORMAT = 'j M Y'
  11
+SHORT_DATETIME_FORMAT = 'j M Y, G:i:s'
  12
+# FIRST_DAY_OF_WEEK = 
  13
+# DATE_INPUT_FORMATS = 
  14
+# TIME_INPUT_FORMATS = 
  15
+# DATETIME_INPUT_FORMATS = 
  16
+DECIMAL_SEPARATOR = ','
  17
+THOUSAND_SEPARATOR = '.'
  18
+# NUMBER_GROUPING = 
0  django/conf/locale/kn/__init__.py
No changes.
18  django/conf/locale/kn/formats.py
... ...
@@ -0,0 +1,18 @@
  1
+# -*- encoding: utf-8 -*-
  2
+# This file is distributed under the same license as the Django package.
  3
+#
  4
+
  5
+DATE_FORMAT = 'j F Y'
  6
+TIME_FORMAT = 'h:i:s A'
  7
+# DATETIME_FORMAT = 
  8
+# YEAR_MONTH_FORMAT = 
  9
+MONTH_DAY_FORMAT = 'j F'
  10
+SHORT_DATE_FORMAT = 'j M Y'
  11
+# SHORT_DATETIME_FORMAT = 
  12
+# FIRST_DAY_OF_WEEK = 
  13
+# DATE_INPUT_FORMATS = 
  14
+# TIME_INPUT_FORMATS = 
  15
+# DATETIME_INPUT_FORMATS = 
  16
+# DECIMAL_SEPARATOR = 
  17
+# THOUSAND_SEPARATOR = 
  18
+# NUMBER_GROUPING = 
0  django/conf/locale/ko/__init__.py
No changes.
44  django/conf/locale/ko/formats.py
... ...
@@ -0,0 +1,44 @@
  1
+# -*- encoding: utf-8 -*-
  2
+# This file is distributed under the same license as the Django package.
  3
+#
  4
+
  5
+DATE_FORMAT = 'Y년 n월 j일'
  6
+TIME_FORMAT = 'A g:i:s'
  7
+DATETIME_FORMAT = 'Y년 n월 j일 g:i:s A'
  8
+YEAR_MONTH_FORMAT = 'Y년 F월'
  9
+MONTH_DAY_FORMAT = 'F월 j일'
  10
+SHORT_DATE_FORMAT = 'Y-n-j.'
  11
+SHORT_DATETIME_FORMAT = 'Y-n-j H:i'
  12
+# FIRST_DAY_OF_WEEK = 
  13
+DATE_INPUT_FORMATS = (
  14
+    '%Y-%m-%d', '%m/%d/%Y', '%m/%d/%y', # '2006-10-25', '10/25/2006', '10/25/06'
  15
+    '%b %d %Y', '%b %d, %Y',            # 'Oct 25 2006', 'Oct 25, 2006'
  16
+    '%d %b %Y', '%d %b, %Y',            # '25 Oct 2006', '25 Oct, 2006'
  17
+    '%B %d %Y', '%B %d, %Y',            # 'October 25 2006', 'October 25, 2006'
  18
+    '%d %B %Y', '%d %B, %Y',            # '25 October 2006', '25 October, 2006'
  19
+    '%Y년 %m월 %d일',                   # '2006년 10월 25일', with localized suffix.
  20
+)
  21
+TIME_INPUT_FORMATS = (
  22
+    '%H:%M:%S',     # '14:30:59'
  23
+    '%H:%M',        # '14:30'
  24
+    '%H시 %M분 %S초',   # '14시 30분 59초'
  25
+    '%H시 %M분',        # '14시 30분'
  26
+)
  27
+DATETIME_INPUT_FORMATS = (
  28
+    '%Y-%m-%d %H:%M:%S',     # '2006-10-25 14:30:59'
  29
+    '%Y-%m-%d %H:%M',        # '2006-10-25 14:30'
  30
+    '%Y-%m-%d',              # '2006-10-25'
  31
+    '%m/%d/%Y %H:%M:%S',     # '10/25/2006 14:30:59'
  32
+    '%m/%d/%Y %H:%M',        # '10/25/2006 14:30'
  33
+    '%m/%d/%Y',              # '10/25/2006'
  34
+    '%m/%d/%y %H:%M:%S',     # '10/25/06 14:30:59'
  35
+    '%m/%d/%y %H:%M',        # '10/25/06 14:30'
  36
+    '%m/%d/%y',              # '10/25/06'
  37
+
  38
+    '%Y년 %m월 %d일 %H시 %M분 %S초',  # '2006년 10월 25일 14시 30분 59초'
  39
+    '%Y년 %m월 %d일 %H시 %M분',       # '2006년 10월 25일 14시 30분'
  40
+)
  41
+
  42
+DECIMAL_SEPARATOR = '.'
  43
+THOUSAND_SEPARATOR = ','
  44
+NUMBER_GROUPING = 3
0  django/conf/locale/lt/__init__.py
No changes.
18  django/conf/locale/lt/formats.py
... ...
@@ -0,0 +1,18 @@
  1
+# -*- encoding: utf-8 -*-
  2
+# This file is distributed under the same license as the Django package.
  3
+#
  4
+
  5
+DATE_FORMAT = 'Y \m. F j \d.'
  6
+TIME_FORMAT = 'H:i:s'
  7
+# DATETIME_FORMAT = 
  8
+# YEAR_MONTH_FORMAT = 
  9
+# MONTH_DAY_FORMAT = 
  10
+SHORT_DATE_FORMAT = 'Y.m.d'
  11
+# SHORT_DATETIME_FORMAT = 
  12
+# FIRST_DAY_OF_WEEK = 
  13
+# DATE_INPUT_FORMATS = 
  14
+# TIME_INPUT_FORMATS = 
  15
+# DATETIME_INPUT_FORMATS = 
  16
+DECIMAL_SEPARATOR = ','
  17
+THOUSAND_SEPARATOR = '.'
  18
+# NUMBER_GROUPING = 
0  django/conf/locale/lv/__init__.py
No changes.
18  django/conf/locale/lv/formats.py
... ...
@@ -0,0 +1,18 @@
  1
+# -*- encoding: utf-8 -*-
  2
+# This file is distributed under the same license as the Django package.
  3
+#
  4
+
  5
+DATE_FORMAT = 'Y. \g\a\d\a j. F'
  6
+TIME_FORMAT = 'H:i:s'
  7
+# DATETIME_FORMAT = 
  8
+YEAR_MONTH_FORMAT = 'Y. \g. F'
  9
+MONTH_DAY_FORMAT = 'j. F'
  10
+SHORT_DATE_FORMAT = 'Y. \g\a\d\a j. M'
  11
+# SHORT_DATETIME_FORMAT = 
  12
+# FIRST_DAY_OF_WEEK = 
  13
+# DATE_INPUT_FORMATS = 
  14
+# TIME_INPUT_FORMATS = 
  15
+# DATETIME_INPUT_FORMATS = 
  16
+DECIMAL_SEPARATOR = ','
  17
+THOUSAND_SEPARATOR = ' '
  18
+# NUMBER_GROUPING = 
0  django/conf/locale/mk/__init__.py
No changes.
18  django/conf/locale/mk/formats.py
... ...
@@ -0,0 +1,18 @@
  1
+# -*- encoding: utf-8 -*-
  2
+# This file is distributed under the same license as the Django package.
  3
+#
  4
+
  5
+DATE_FORMAT = 'd F Y'
  6
+TIME_FORMAT = 'H:i:s'
  7
+# DATETIME_FORMAT = 
  8
+# YEAR_MONTH_FORMAT = 
  9
+# MONTH_DAY_FORMAT = 
  10
+SHORT_DATE_FORMAT = 'd.n.Y'
  11
+# SHORT_DATETIME_FORMAT = 
  12
+# FIRST_DAY_OF_WEEK = 
  13
+# DATE_INPUT_FORMATS = 
  14
+# TIME_INPUT_FORMATS = 
  15
+# DATETIME_INPUT_FORMATS = 
  16
+DECIMAL_SEPARATOR = ','
  17
+THOUSAND_SEPARATOR = '.'
  18
+# NUMBER_GROUPING = 
0  django/conf/locale/nl/__init__.py
No changes.
48  django/conf/locale/nl/formats.py
... ...
@@ -0,0 +1,48 @@
  1
+# -*- encoding: utf-8 -*-
  2
+# This file is distributed under the same license as the Django package.
  3
+#
  4
+
  5
+DATE_FORMAT = 'j F Y'                   # '20 januari 2009'
  6
+TIME_FORMAT = 'H:i'                     # '15:23'
  7
+DATETIME_FORMAT = 'j F Y H:i'           # '20 januari 2009 15:23'
  8
+YEAR_MONTH_FORMAT = 'F Y'               # 'januari 2009'
  9
+MONTH_DAY_FORMAT = 'j F'                # '20 januari'
  10
+SHORT_DATE_FORMAT = 'j-n-Y'             # '20-1-2009'
  11
+SHORT_DATETIME_FORMAT = 'j-n-Y H:i'     # '20-1-2009 15:23'
  12
+FIRST_DAY_OF_WEEK = 1                   # Monday (in Dutch 'maandag')
  13
+DATE_INPUT_FORMATS = (
  14
+    '%d-%m-%Y', '%d-%m-%y', '%Y-%m-%d', # '20-01-2009', '20-01-09', '2009-01-20'
  15
+    '%d %b %Y', '%d %b %y',             # '20 jan 2009', '20 jan 09'
  16
+    '%d %B %Y', '%d %B %y',             # '20 januari 2009', '20 januari 09'
  17
+)
  18
+TIME_INPUT_FORMATS = (
  19
+    '%H:%M:%S',                         # '15:23:35'
  20
+    '%H.%M:%S',                         # '15.23:35'
  21
+    '%H.%M',                            # '15.23'
  22
+    '%H:%M',                            # '15:23'
  23
+)
  24
+DATETIME_INPUT_FORMATS = (
  25
+    # With time in %H:%M:%S :
  26
+    '%d-%m-%Y %H:%M:%S', '%d-%m-%y %H:%M:%S', '%Y-%m-%d %H:%M:%S',  # '20-01-2009 15:23:35', '20-01-09 15:23:35', '2009-01-20 15:23:35'
  27
+    '%d %b %Y %H:%M:%S', '%d %b %y %H:%M:%S',   # '20 jan 2009 15:23:35', '20 jan 09 15:23:35'
  28
+    '%d %B %Y %H:%M:%S', '%d %B %y %H:%M:%S',   # '20 januari 2009 15:23:35', '20 januari 2009 15:23:35'
  29
+    # With time in %H.%M:%S :
  30
+    '%d-%m-%Y %H.%M:%S', '%d-%m-%y %H.%M:%S',   # '20-01-2009 15.23:35', '20-01-09 15.23:35'
  31
+    '%d %b %Y %H.%M:%S', '%d %b %y %H.%M:%S',   # '20 jan 2009 15.23:35', '20 jan 09 15.23:35'
  32
+    '%d %B %Y %H.%M:%S', '%d %B %y %H.%M:%S',   # '20 januari 2009 15.23:35', '20 januari 2009 15.23:35'
  33
+    # With time in %H:%M :
  34
+    '%d-%m-%Y %H:%M', '%d-%m-%y %H:%M', '%Y-%m-%d %H:%M',   # '20-01-2009 15:23', '20-01-09 15:23', '2009-01-20 15:23'
  35
+    '%d %b %Y %H:%M', '%d %b %y %H:%M',         # '20 jan 2009 15:23', '20 jan 09 15:23'
  36
+    '%d %B %Y %H:%M', '%d %B %y %H:%M',         # '20 januari 2009 15:23', '20 januari 2009 15:23'
  37
+    # With time in %H.%M :
  38
+    '%d-%m-%Y %H.%M', '%d-%m-%y %H.%M',         # '20-01-2009 15.23', '20-01-09 15.23'
  39
+    '%d %b %Y %H.%M', '%d %b %y %H.%M',         # '20 jan 2009 15.23', '20 jan 09 15.23'
  40
+    '%d %B %Y %H.%M', '%d %B %y %H.%M',         # '20 januari 2009 15.23', '20 januari 2009 15.23'
  41
+    # Without time :
  42
+    '%d-%m-%Y', '%d-%m-%y', '%Y-%m-%d',         # '20-01-2009', '20-01-09', '2009-01-20'
  43
+    '%d %b %Y', '%d %b %y',                     # '20 jan 2009', '20 jan 09'
  44
+    '%d %B %Y', '%d %B %y',                     # '20 januari 2009', '20 januari 2009'
  45
+)
  46
+DECIMAL_SEPARATOR = ','
  47
+THOUSAND_SEPARATOR = '.'
  48
+NUMBER_GROUPING = 3
0  django/conf/locale/no/__init__.py
No changes.
34  django/conf/locale/no/formats.py
... ...
@@ -0,0 +1,34 @@
  1
+DATE_FORMAT = 'j. F Y'
  2
+TIME_FORMAT = 'H:i'
  3
+DATETIME_FORMAT = 'j. F Y H:i'
  4
+YEAR_MONTH_FORMAT = 'F Y'
  5
+MONTH_DAY_FORMAT = 'j. F'
  6
+SHORT_DATE_FORMAT = 'd.m.Y'
  7
+SHORT_DATETIME_FORMAT = 'd.m.Y H:i'
  8
+FIRST_DAY_OF_WEEK = 1 # Monday
  9
+DATE_INPUT_FORMATS = (
  10
+    '%Y-%m-%d', '%j.%m.%Y', '%j.%m.%y', # '2006-10-25', '25.10.2006', '25.10.06'
  11
+    '%Y-%m-%j',                         # '2006-10-25', 
  12
+    '%j. %b %Y', '%j %b %Y',            # '25. okt 2006', '25 okt 2006'
  13
+    '%j. %b. %Y', '%j %b. %Y',          # '25. okt. 2006', '25 okt. 2006'
  14
+    '%j. %B %Y', '%j %B %Y',            # '25. oktober 2006', '25 oktober 2006'
  15
+)
  16
+TIME_INPUT_FORMATS = (
  17
+    '%H:%i:%S',     # '14:30:59'
  18
+    '%H:%i',     # '14:30'
  19
+)
  20
+DATETIME_INPUT_FORMATS = (
  21
+    '%Y-%m-%d %H:%i:%S',     # '2006-10-25 14:30:59'
  22
+    '%Y-%m-%d %H:%i',        # '2006-10-25 14:30'
  23
+    '%Y-%m-%d',              # '2006-10-25'
  24
+    '%Y-%m-%j',              # '2006-10-25'
  25
+    '%j.%m.%Y %H:%i:%S',     # '25.10.2006 14:30:59'
  26
+    '%j.%m.%Y %H:%i',        # '25.10.2006 14:30'
  27
+    '%j.%m.%Y',              # '25.10.2006'
  28
+    '%j.%m.%y %H:%i:%S',     # '25.10.06 14:30:59'
  29
+    '%j.%m.%y %H:%i',        # '25.10.06 14:30'
  30
+    '%j.%m.%y',              # '25.10.06'
  31
+)
  32
+DECIMAL_SEPARATOR = ','
  33
+THOUSAND_SEPARATOR = ' '
  34
+NUMBER_GROUPING = 3
0  django/conf/locale/pl/__init__.py
No changes.
18  django/conf/locale/pl/formats.py
... ...
@@ -0,0 +1,18 @@
  1
+# -*- encoding: utf-8 -*-
  2
+# This file is distributed under the same license as the Django package.
  3
+#
  4
+
  5
+DATE_FORMAT = 'j F Y'
  6
+TIME_FORMAT = 'H:i:s'
  7
+# DATETIME_FORMAT = 
  8
+YEAR_MONTH_FORMAT = 'F Y'
  9
+MONTH_DAY_FORMAT = 'j F'
  10
+SHORT_DATE_FORMAT = 'd-m-Y'
  11
+# SHORT_DATETIME_FORMAT = 
  12
+# FIRST_DAY_OF_WEEK = 
  13
+# DATE_INPUT_FORMATS = 
  14
+# TIME_INPUT_FORMATS = 
  15
+# DATETIME_INPUT_FORMATS = 
  16
+DECIMAL_SEPARATOR = ','
  17
+THOUSAND_SEPARATOR = ' '
  18
+# NUMBER_GROUPING = 
0  django/conf/locale/pt/__init__.py
No changes.
18 