prompt: We are currently solving the following issue within our repository. Here is the issue text:
  --- BEGIN ISSUE ---
  Wagtail should not change month name translations
  ### Issue Summary
  
  Wagtail translations overrides month name translations (at least for Slovenian language) which changes how dates are formatted.
  
  ### Steps to Reproduce
  
  With wagtail installed:
  
  ```python
  >>> from django.utils.translation import activate                                                                                                
  >>> activate("sl")                                                                                                                               
  >>> from django.utils import formats 
  ...                                                                                                                                              
  >>> from datetime import date                                                                                                                    
  >>> formats.date_format(date.today())                                                                                                            
  '5. Avgust 2020'
  ```
  
  It should be (and without wagtail installed it is) `5. avgust 2020`.
  
  * I have confirmed that this issue can be reproduced as described on a fresh Wagtail project: (yes / no)
  
  yes
  
  ### Technical details
  
  * Python version: Run `python --version`.
  
  Python 3.7.1
  
  Django version: Look in your requirements.txt, or run `pip show django | grep Version`.
  
  Version: 2.2.14
  
  * Wagtail version: Look at the bottom of the Settings menu in the Wagtail admin, or run `pip show wagtail | grep Version:`.
  
  Version: 2.9.2
  
  
  --- END ISSUE ---
  
  Below are some code segments, each from a relevant file. One or more of these files may contain bugs.
  --- BEGIN FILES ---
  Path: `wagtail/admin/localization.py`
  Content:
  ```
  1 import pytz
  2 
  3 from django.conf import settings
  4 from django.utils.translation import gettext as _
  5 from django.utils.translation import gettext_lazy
  6 
  7 
  8 # Wagtail languages with >=90% coverage
  9 # This list is manually maintained
  10 WAGTAILADMIN_PROVIDED_LANGUAGES = [
  11     ('ar', gettext_lazy('Arabic')),
  12     ('ca', gettext_lazy('Catalan')),
  13     ('cs', gettext_lazy('Czech')),
  14     ('de', gettext_lazy('German')),
  15     ('el', gettext_lazy('Greek')),
  16     ('en', gettext_lazy('English')),
  17     ('es', gettext_lazy('Spanish')),
  18     ('fi', gettext_lazy('Finnish')),
  19     ('fr', gettext_lazy('French')),
  20     ('gl', gettext_lazy('Galician')),
  21     ('hu', gettext_lazy('Hungarian')),
  22     ('id-id', gettext_lazy('Indonesian')),
  23     ('is-is', gettext_lazy('Icelandic')),
  24     ('it', gettext_lazy('Italian')),
  25     ('ja', gettext_lazy('Japanese')),
  26     ('ko', gettext_lazy('Korean')),
  27     ('lt', gettext_lazy('Lithuanian')),
  28     ('mn', gettext_lazy('Mongolian')),
  29     ('nb', gettext_lazy('Norwegian Bokmål')),
  30     ('nl-nl', gettext_lazy('Netherlands Dutch')),
  31     ('fa', gettext_lazy('Persian')),
  32     ('pl', gettext_lazy('Polish')),
  33     ('pt-br', gettext_lazy('Brazilian Portuguese')),
  34     ('pt-pt', gettext_lazy('Portuguese')),
  35     ('ro', gettext_lazy('Romanian')),
  36     ('ru', gettext_lazy('Russian')),
  37     ('sv', gettext_lazy('Swedish')),
  38     ('sk-sk', gettext_lazy('Slovak')),
  39     ('th', gettext_lazy('Thai')),
  40     ('tr', gettext_lazy('Turkish')),
  41     ('tr-tr', gettext_lazy('Turkish (Turkey)')),
  42     ('uk', gettext_lazy('Ukrainian')),
  43     ('zh-hans', gettext_lazy('Chinese (Simplified)')),
  44     ('zh-hant', gettext_lazy('Chinese (Traditional)')),
  45 ]
  46 
  47 
  48 # Translatable strings to be made available to JavaScript code
  49 # as the wagtailConfig.STRINGS object
  50 def get_js_translation_strings():
  51     return {
  52         'DELETE': _('Delete'),
  53         'EDIT': _('Edit'),
  54         'PAGE': _('Page'),
  55         'PAGES': _('Pages'),
  56         'LOADING': _('Loading…'),
  57         'NO_RESULTS': _('No results'),
  58         'SERVER_ERROR': _('Server Error'),
  59         'SEE_ALL': _('See all'),
  60         'CLOSE_EXPLORER': _('Close explorer'),
  61         'ALT_TEXT': _('Alt text'),
  62         'WRITE_HERE': _('Write here…'),
  63         'HORIZONTAL_LINE': _('Horizontal line'),
  64         'LINE_BREAK': _('Line break'),
  65         'UNDO': _('Undo'),
  66         'REDO': _('Redo'),
  67         'RELOAD_PAGE': _('Reload the page'),
  68         'RELOAD_EDITOR': _('Reload saved content'),
  69         'SHOW_LATEST_CONTENT': _('Show latest content'),
  70         'SHOW_ERROR': _('Show error'),
  71         'EDITOR_CRASH': _('The editor just crashed. Content has been reset to the last saved version.'),
  72         'BROKEN_LINK': _('Broken link'),
  73         'MISSING_DOCUMENT': _('Missing document'),
  74         'CLOSE': _('Close'),
  75         'EDIT_PAGE': _('Edit \'{title}\''),
  76         'VIEW_CHILD_PAGES_OF_PAGE': _('View child pages of \'{title}\''),
  77         'PAGE_EXPLORER': _('Page explorer'),
  78 
  79         'MONTHS': [
  80             _('January'),
  81             _('February'),
  82             _('March'),
  83             _('April'),
  84             _('May'),
  85             _('June'),
  86             _('July'),
  87             _('August'),
  88             _('September'),
  89             _('October'),
  90             _('November'),
  91             _('December')
  92         ],
  93         'WEEKDAYS': [
  94             _('Sunday'),
  95             _('Monday'),
  96             _('Tuesday'),
  97             _('Wednesday'),
  98             _('Thursday'),
  99             _('Friday'),
  100             _('Saturday')
  101         ],
  102         'WEEKDAYS_SHORT': [
  103             _('Sun'),
  104             _('Mon'),
  105             _('Tue'),
  106             _('Wed'),
  107             _('Thu'),
  108             _('Fri'),
  109             _('Sat')
  110         ]
  111     }
  112 
  113 
  114 def get_available_admin_languages():
  115     return getattr(settings, 'WAGTAILADMIN_PERMITTED_LANGUAGES', WAGTAILADMIN_PROVIDED_LANGUAGES)
  116 
  117 
  118 def get_available_admin_time_zones():
  119     return getattr(settings, 'WAGTAIL_USER_TIME_ZONES', pytz.common_timezones)
  120
  ```
  --- END FILES ---
  
  Please first localize the bug based on the issue statement, and then generate a patch according to the `git diff` format fenced by three backticks.
  
  Here is an example:
  
  ```diff
  diff --git a/examples/server_async.py b/examples/server_async.py
  --- a/examples/server_async.py
  +++ b/examples/server_async.py
  @@ -313,4 +313,4 @@
   
   
   if __name__ == "__main__":
  -    asyncio.run(run_async_server("."), debug=True)
  +    asyncio.run(run_async_server(), debug=True)
  diff --git a/examples/server_sync.py b/examples/server_sync.py
  --- a/examples/server_sync.py
  +++ b/examples/server_sync.py
  @@ -313,5 +313,5 @@
   
   
   if __name__ == "__main__":
  -    server = run_sync_server(".")
  +    server = run_sync_server()
       server.shutdown()
  
  ```
  
golden_diff: diff --git a/wagtail/admin/localization.py b/wagtail/admin/localization.py
  --- a/wagtail/admin/localization.py
  +++ b/wagtail/admin/localization.py
  @@ -1,6 +1,7 @@
   import pytz
   
   from django.conf import settings
  +from django.utils.dates import MONTHS, WEEKDAYS, WEEKDAYS_ABBR
   from django.utils.translation import gettext as _
   from django.utils.translation import gettext_lazy
   
  @@ -76,38 +77,12 @@
           'VIEW_CHILD_PAGES_OF_PAGE': _('View child pages of \'{title}\''),
           'PAGE_EXPLORER': _('Page explorer'),
   
  -        'MONTHS': [
  -            _('January'),
  -            _('February'),
  -            _('March'),
  -            _('April'),
  -            _('May'),
  -            _('June'),
  -            _('July'),
  -            _('August'),
  -            _('September'),
  -            _('October'),
  -            _('November'),
  -            _('December')
  -        ],
  -        'WEEKDAYS': [
  -            _('Sunday'),
  -            _('Monday'),
  -            _('Tuesday'),
  -            _('Wednesday'),
  -            _('Thursday'),
  -            _('Friday'),
  -            _('Saturday')
  -        ],
  -        'WEEKDAYS_SHORT': [
  -            _('Sun'),
  -            _('Mon'),
  -            _('Tue'),
  -            _('Wed'),
  -            _('Thu'),
  -            _('Fri'),
  -            _('Sat')
  -        ]
  +        'MONTHS': [str(m) for m in MONTHS.values()],
  +
  +        # Django's WEEKDAYS list begins on Monday, but ours should start on Sunday, so start
  +        # counting from -1 and use modulo 7 to get an array index
  +        'WEEKDAYS': [str(WEEKDAYS[d % 7]) for d in range(-1, 6)],
  +        'WEEKDAYS_SHORT': [str(WEEKDAYS_ABBR[d % 7]) for d in range(-1, 6)],
       }
  
verification_info: {"golden_diff": "diff --git a/wagtail/admin/localization.py b/wagtail/admin/localization.py\n--- a/wagtail/admin/localization.py\n+++ b/wagtail/admin/localization.py\n@@ -1,6 +1,7 @@\n import pytz\n \n from django.conf import settings\n+from django.utils.dates import MONTHS, WEEKDAYS, WEEKDAYS_ABBR\n from django.utils.translation import gettext as _\n from django.utils.translation import gettext_lazy\n \n@@ -76,38 +77,12 @@\n         'VIEW_CHILD_PAGES_OF_PAGE': _('View child pages of \\'{title}\\''),\n         'PAGE_EXPLORER': _('Page explorer'),\n \n-        'MONTHS': [\n-            _('January'),\n-            _('February'),\n-            _('March'),\n-            _('April'),\n-            _('May'),\n-            _('June'),\n-            _('July'),\n-            _('August'),\n-            _('September'),\n-            _('October'),\n-            _('November'),\n-            _('December')\n-        ],\n-        'WEEKDAYS': [\n-            _('Sunday'),\n-            _('Monday'),\n-            _('Tuesday'),\n-            _('Wednesday'),\n-            _('Thursday'),\n-            _('Friday'),\n-            _('Saturday')\n-        ],\n-        'WEEKDAYS_SHORT': [\n-            _('Sun'),\n-            _('Mon'),\n-            _('Tue'),\n-            _('Wed'),\n-            _('Thu'),\n-            _('Fri'),\n-            _('Sat')\n-        ]\n+        'MONTHS': [str(m) for m in MONTHS.values()],\n+\n+        # Django's WEEKDAYS list begins on Monday, but ours should start on Sunday, so start\n+        # counting from -1 and use modulo 7 to get an array index\n+        'WEEKDAYS': [str(WEEKDAYS[d % 7]) for d in range(-1, 6)],\n+        'WEEKDAYS_SHORT': [str(WEEKDAYS_ABBR[d % 7]) for d in range(-1, 6)],\n     }\n", "issue": "Wagtail should not change month name translations\n### Issue Summary\r\n\r\nWagtail translations overrides month name translations (at least for Slovenian language) which changes how dates are formatted.\r\n\r\n### Steps to Reproduce\r\n\r\nWith wagtail installed:\r\n\r\n```python\r\n>>> from django.utils.translation import activate                                                                                                \r\n>>> activate(\"sl\")                                                                                                                               \r\n>>> from django.utils import formats \r\n...                                                                                                                                              \r\n>>> from datetime import date                                                                                                                    \r\n>>> formats.date_format(date.today())                                                                                                            \r\n'5. Avgust 2020'\r\n```\r\n\r\nIt should be (and without wagtail installed it is) `5. avgust 2020`.\r\n\r\n* I have confirmed that this issue can be reproduced as described on a fresh Wagtail project: (yes / no)\r\n\r\nyes\r\n\r\n### Technical details\r\n\r\n* Python version: Run `python --version`.\r\n\r\nPython 3.7.1\r\n\r\nDjango version: Look in your requirements.txt, or run `pip show django | grep Version`.\r\n\r\nVersion: 2.2.14\r\n\r\n* Wagtail version: Look at the bottom of the Settings menu in the Wagtail admin, or run `pip show wagtail | grep Version:`.\r\n\r\nVersion: 2.9.2\r\n\n", "before_files": [{"content": "import pytz\n\nfrom django.conf import settings\nfrom django.utils.translation import gettext as _\nfrom django.utils.translation import gettext_lazy\n\n\n# Wagtail languages with >=90% coverage\n# This list is manually maintained\nWAGTAILADMIN_PROVIDED_LANGUAGES = [\n    ('ar', gettext_lazy('Arabic')),\n    ('ca', gettext_lazy('Catalan')),\n    ('cs', gettext_lazy('Czech')),\n    ('de', gettext_lazy('German')),\n    ('el', gettext_lazy('Greek')),\n    ('en', gettext_lazy('English')),\n    ('es', gettext_lazy('Spanish')),\n    ('fi', gettext_lazy('Finnish')),\n    ('fr', gettext_lazy('French')),\n    ('gl', gettext_lazy('Galician')),\n    ('hu', gettext_lazy('Hungarian')),\n    ('id-id', gettext_lazy('Indonesian')),\n    ('is-is', gettext_lazy('Icelandic')),\n    ('it', gettext_lazy('Italian')),\n    ('ja', gettext_lazy('Japanese')),\n    ('ko', gettext_lazy('Korean')),\n    ('lt', gettext_lazy('Lithuanian')),\n    ('mn', gettext_lazy('Mongolian')),\n    ('nb', gettext_lazy('Norwegian Bokm\u00e5l')),\n    ('nl-nl', gettext_lazy('Netherlands Dutch')),\n    ('fa', gettext_lazy('Persian')),\n    ('pl', gettext_lazy('Polish')),\n    ('pt-br', gettext_lazy('Brazilian Portuguese')),\n    ('pt-pt', gettext_lazy('Portuguese')),\n    ('ro', gettext_lazy('Romanian')),\n    ('ru', gettext_lazy('Russian')),\n    ('sv', gettext_lazy('Swedish')),\n    ('sk-sk', gettext_lazy('Slovak')),\n    ('th', gettext_lazy('Thai')),\n    ('tr', gettext_lazy('Turkish')),\n    ('tr-tr', gettext_lazy('Turkish (Turkey)')),\n    ('uk', gettext_lazy('Ukrainian')),\n    ('zh-hans', gettext_lazy('Chinese (Simplified)')),\n    ('zh-hant', gettext_lazy('Chinese (Traditional)')),\n]\n\n\n# Translatable strings to be made available to JavaScript code\n# as the wagtailConfig.STRINGS object\ndef get_js_translation_strings():\n    return {\n        'DELETE': _('Delete'),\n        'EDIT': _('Edit'),\n        'PAGE': _('Page'),\n        'PAGES': _('Pages'),\n        'LOADING': _('Loading\u2026'),\n        'NO_RESULTS': _('No results'),\n        'SERVER_ERROR': _('Server Error'),\n        'SEE_ALL': _('See all'),\n        'CLOSE_EXPLORER': _('Close explorer'),\n        'ALT_TEXT': _('Alt text'),\n        'WRITE_HERE': _('Write here\u2026'),\n        'HORIZONTAL_LINE': _('Horizontal line'),\n        'LINE_BREAK': _('Line break'),\n        'UNDO': _('Undo'),\n        'REDO': _('Redo'),\n        'RELOAD_PAGE': _('Reload the page'),\n        'RELOAD_EDITOR': _('Reload saved content'),\n        'SHOW_LATEST_CONTENT': _('Show latest content'),\n        'SHOW_ERROR': _('Show error'),\n        'EDITOR_CRASH': _('The editor just crashed. Content has been reset to the last saved version.'),\n        'BROKEN_LINK': _('Broken link'),\n        'MISSING_DOCUMENT': _('Missing document'),\n        'CLOSE': _('Close'),\n        'EDIT_PAGE': _('Edit \\'{title}\\''),\n        'VIEW_CHILD_PAGES_OF_PAGE': _('View child pages of \\'{title}\\''),\n        'PAGE_EXPLORER': _('Page explorer'),\n\n        'MONTHS': [\n            _('January'),\n            _('February'),\n            _('March'),\n            _('April'),\n            _('May'),\n            _('June'),\n            _('July'),\n            _('August'),\n            _('September'),\n            _('October'),\n            _('November'),\n            _('December')\n        ],\n        'WEEKDAYS': [\n            _('Sunday'),\n            _('Monday'),\n            _('Tuesday'),\n            _('Wednesday'),\n            _('Thursday'),\n            _('Friday'),\n            _('Saturday')\n        ],\n        'WEEKDAYS_SHORT': [\n            _('Sun'),\n            _('Mon'),\n            _('Tue'),\n            _('Wed'),\n            _('Thu'),\n            _('Fri'),\n            _('Sat')\n        ]\n    }\n\n\ndef get_available_admin_languages():\n    return getattr(settings, 'WAGTAILADMIN_PERMITTED_LANGUAGES', WAGTAILADMIN_PROVIDED_LANGUAGES)\n\n\ndef get_available_admin_time_zones():\n    return getattr(settings, 'WAGTAIL_USER_TIME_ZONES', pytz.common_timezones)\n", "path": "wagtail/admin/localization.py"}], "after_files": [{"content": "import pytz\n\nfrom django.conf import settings\nfrom django.utils.dates import MONTHS, WEEKDAYS, WEEKDAYS_ABBR\nfrom django.utils.translation import gettext as _\nfrom django.utils.translation import gettext_lazy\n\n\n# Wagtail languages with >=90% coverage\n# This list is manually maintained\nWAGTAILADMIN_PROVIDED_LANGUAGES = [\n    ('ar', gettext_lazy('Arabic')),\n    ('ca', gettext_lazy('Catalan')),\n    ('cs', gettext_lazy('Czech')),\n    ('de', gettext_lazy('German')),\n    ('el', gettext_lazy('Greek')),\n    ('en', gettext_lazy('English')),\n    ('es', gettext_lazy('Spanish')),\n    ('fi', gettext_lazy('Finnish')),\n    ('fr', gettext_lazy('French')),\n    ('gl', gettext_lazy('Galician')),\n    ('hu', gettext_lazy('Hungarian')),\n    ('id-id', gettext_lazy('Indonesian')),\n    ('is-is', gettext_lazy('Icelandic')),\n    ('it', gettext_lazy('Italian')),\n    ('ja', gettext_lazy('Japanese')),\n    ('ko', gettext_lazy('Korean')),\n    ('lt', gettext_lazy('Lithuanian')),\n    ('mn', gettext_lazy('Mongolian')),\n    ('nb', gettext_lazy('Norwegian Bokm\u00e5l')),\n    ('nl-nl', gettext_lazy('Netherlands Dutch')),\n    ('fa', gettext_lazy('Persian')),\n    ('pl', gettext_lazy('Polish')),\n    ('pt-br', gettext_lazy('Brazilian Portuguese')),\n    ('pt-pt', gettext_lazy('Portuguese')),\n    ('ro', gettext_lazy('Romanian')),\n    ('ru', gettext_lazy('Russian')),\n    ('sv', gettext_lazy('Swedish')),\n    ('sk-sk', gettext_lazy('Slovak')),\n    ('th', gettext_lazy('Thai')),\n    ('tr', gettext_lazy('Turkish')),\n    ('tr-tr', gettext_lazy('Turkish (Turkey)')),\n    ('uk', gettext_lazy('Ukrainian')),\n    ('zh-hans', gettext_lazy('Chinese (Simplified)')),\n    ('zh-hant', gettext_lazy('Chinese (Traditional)')),\n]\n\n\n# Translatable strings to be made available to JavaScript code\n# as the wagtailConfig.STRINGS object\ndef get_js_translation_strings():\n    return {\n        'DELETE': _('Delete'),\n        'EDIT': _('Edit'),\n        'PAGE': _('Page'),\n        'PAGES': _('Pages'),\n        'LOADING': _('Loading\u2026'),\n        'NO_RESULTS': _('No results'),\n        'SERVER_ERROR': _('Server Error'),\n        'SEE_ALL': _('See all'),\n        'CLOSE_EXPLORER': _('Close explorer'),\n        'ALT_TEXT': _('Alt text'),\n        'WRITE_HERE': _('Write here\u2026'),\n        'HORIZONTAL_LINE': _('Horizontal line'),\n        'LINE_BREAK': _('Line break'),\n        'UNDO': _('Undo'),\n        'REDO': _('Redo'),\n        'RELOAD_PAGE': _('Reload the page'),\n        'RELOAD_EDITOR': _('Reload saved content'),\n        'SHOW_LATEST_CONTENT': _('Show latest content'),\n        'SHOW_ERROR': _('Show error'),\n        'EDITOR_CRASH': _('The editor just crashed. Content has been reset to the last saved version.'),\n        'BROKEN_LINK': _('Broken link'),\n        'MISSING_DOCUMENT': _('Missing document'),\n        'CLOSE': _('Close'),\n        'EDIT_PAGE': _('Edit \\'{title}\\''),\n        'VIEW_CHILD_PAGES_OF_PAGE': _('View child pages of \\'{title}\\''),\n        'PAGE_EXPLORER': _('Page explorer'),\n\n        'MONTHS': [str(m) for m in MONTHS.values()],\n\n        # Django's WEEKDAYS list begins on Monday, but ours should start on Sunday, so start\n        # counting from -1 and use modulo 7 to get an array index\n        'WEEKDAYS': [str(WEEKDAYS[d % 7]) for d in range(-1, 6)],\n        'WEEKDAYS_SHORT': [str(WEEKDAYS_ABBR[d % 7]) for d in range(-1, 6)],\n    }\n\n\ndef get_available_admin_languages():\n    return getattr(settings, 'WAGTAILADMIN_PERMITTED_LANGUAGES', WAGTAILADMIN_PROVIDED_LANGUAGES)\n\n\ndef get_available_admin_time_zones():\n    return getattr(settings, 'WAGTAIL_USER_TIME_ZONES', pytz.common_timezones)\n", "path": "wagtail/admin/localization.py"}]}