1
0
mirror of https://github.com/django/django.git synced 2025-11-07 07:15:35 +00:00

Reused the DjangoTranslation class for the javascript_catalog view

Thanks Tim Graham and Cristiano Coelho for the reviews.
Refs #26328, #26319.
This commit is contained in:
Claude Paroz
2016-03-06 01:01:39 +01:00
parent c5fda55edc
commit 11c60b5298
4 changed files with 56 additions and 70 deletions

View File

@@ -164,6 +164,7 @@ class JsI18NTests(SimpleTestCase):
with self.settings(LANGUAGE_CODE='fr'), override('fi'):
response = self.client.get('/jsi18n/')
self.assertContains(response, 'il faut le traduire')
self.assertNotContains(response, "Untranslated string")
def test_i18n_language_non_english_default(self):
"""