diff --git a/tests/regressiontests/views/tests/i18n.py b/tests/regressiontests/views/tests/i18n.py
index 2f67d52..9f22963 100644
a
|
b
|
from os import path
|
6 | 6 | |
7 | 7 | from django.conf import settings |
8 | 8 | from django.test import TestCase |
9 | | from django.utils.translation import override, activate |
| 9 | from django.utils.translation import override, activate, get_language |
10 | 10 | from django.utils.text import javascript_quote |
11 | 11 | |
12 | 12 | from ..urls import locale_dir |
… |
… |
class I18NTests(TestCase):
|
25 | 25 | |
26 | 26 | def test_jsi18n(self): |
27 | 27 | """The javascript_catalog can be deployed with language settings""" |
| 28 | saved_lang = get_language() |
28 | 29 | for lang_code in ['es', 'fr', 'ru']: |
29 | 30 | activate(lang_code) |
30 | 31 | catalog = gettext.translation('djangojs', locale_dir, [lang_code]) |
… |
… |
class I18NTests(TestCase):
|
37 | 38 | if lang_code == 'fr': |
38 | 39 | # Message with context (msgctxt) |
39 | 40 | self.assertContains(response, "['month name\x04May'] = 'mai';", 1) |
| 41 | if saved_lang is not None: |
| 42 | activate(saved_lang) |
40 | 43 | |
41 | 44 | |
42 | 45 | class JsI18NTests(TestCase): |