diff --git a/django/views/i18n.py b/django/views/i18n.py
index 133c42f..d55d5aa 100644
a
|
b
|
def javascript_catalog(request, domain='djangojs', packages=None):
|
211 | 211 | en_catalog_missing = True |
212 | 212 | # Otherwise it is harmless. |
213 | 213 | pass |
| 214 | paths.extend(settings.LOCALE_PATHS) |
214 | 215 | # next load the settings.LANGUAGE_CODE translations if it isn't english |
215 | 216 | if default_locale != 'en': |
216 | 217 | for path in paths: |
diff --git a/tests/regressiontests/views/tests/i18n.py b/tests/regressiontests/views/tests/i18n.py
index de023be..582c2b9 100644
a
|
b
|
|
1 | 1 | # -*- coding:utf-8 -*- |
2 | 2 | import gettext |
| 3 | import os |
3 | 4 | |
4 | 5 | from django.conf import settings |
5 | 6 | from django.test import TestCase |
… |
… |
class JsI18NTestsMultiPackage(TestCase):
|
136 | 137 | response = self.client.get('/views/jsi18n_multi_packages2/') |
137 | 138 | self.assertContains(response, javascript_quote('este texto de app3 debe ser traducido')) |
138 | 139 | deactivate() |
| 140 | |
| 141 | def testI18NWithLocalePaths(self): |
| 142 | settings.LANGUAGE_CODE = 'es-ar' |
| 143 | self.old_locale_paths = settings.LOCALE_PATHS |
| 144 | settings.LOCALE_PATHS += (os.path.join(os.path.dirname(os.path.dirname(os.path.abspath(__file__))), 'app3', 'locale'),) |
| 145 | response = self.client.get('/views/jsi18n/') |
| 146 | self.assertContains(response, javascript_quote('este texto de app3 debe ser traducido')) |
| 147 | settings.LOCALE_PATHS = self.old_locale_paths |