mirror of
https://github.com/django/django.git
synced 2025-07-24 13:44:32 +00:00
Fixes #30342 -- Removed a system check for LANGUAGES_BIDI setting.
This partly reverts commit 4400d8296d
.
This commit is contained in:
parent
0c916255eb
commit
80482e9249
4 changed files with 8 additions and 26 deletions
|
@ -80,15 +80,7 @@ class TranslationCheckTests(SimpleTestCase):
|
|||
'You have provided a value for the LANGUAGE_CODE setting that is '
|
||||
'not in the LANGUAGES setting.'
|
||||
)
|
||||
with self.settings(LANGUAGE_CODE='fr', LANGUAGES=[('en', 'English')], LANGUAGES_BIDI=[]):
|
||||
with self.settings(LANGUAGE_CODE='fr', LANGUAGES=[('en', 'English')]):
|
||||
self.assertEqual(check_language_settings_consistent(None), [
|
||||
Error(msg, id='translation.E004'),
|
||||
])
|
||||
msg = (
|
||||
'You have provided values in the LANGUAGES_BIDI setting that are '
|
||||
'not in the LANGUAGES setting.'
|
||||
)
|
||||
with self.settings(LANGUAGE_CODE='en', LANGUAGES=[('en', 'English')], LANGUAGES_BIDI=['he']):
|
||||
self.assertEqual(check_language_settings_consistent(None), [
|
||||
Error(msg, id='translation.E005'),
|
||||
])
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue