fix: remove fake2 language from django settings

This was causing issue with Django 3.2, as Django has restricted to only use language from the pre-defined set of languages provided by Django.

BOM-2870
This commit is contained in:
Soban Javed
2021-10-04 20:41:34 +05:00
parent e41520dbae
commit 71debe7f7b
3 changed files with 0 additions and 4 deletions

View File

@@ -94,7 +94,6 @@ locales:
# The locales used for fake-accented English, for testing.
dummy_locales:
- eo
- fake2
- rtl # Fake testing language for Arabic
# Directories we don't search for strings.

View File

@@ -1715,7 +1715,6 @@ LANGUAGES = [
('en', 'English'),
('rtl', 'Right-to-Left Test Language'),
('eo', 'Dummy Language (Esperanto)'), # Dummy languaged used for testing
('fake2', 'Fake translations'), # Another dummy language for testing (not pushed to prod)
('am', 'አማርኛ'), # Amharic
('ar', 'العربية'), # Arabic

View File

@@ -77,8 +77,6 @@ class TestGenerate(TestCase):
.mo files should exist, and be recently created (modified
after start of test suite)
"""
# Change dummy_locales to not have Esperanto present.
self.configuration.dummy_locales = ['fake2']
generate.main(verbosity=0, strict=False)
for locale in self.configuration.translated_locales: