Ticket #5581: patch-views_i18n_py

File patch-views_i18n_py, 524 bytes (added by Benoit Chesneau <bchesneau@…>, 7 years ago)

add media folder to javascript catalog in i18n

Line 
1Index: views/i18n.py
2===================================================================
3--- views/i18n.py       (revision 7174)
4+++ views/i18n.py       (working copy)
5@@ -111,6 +111,7 @@
6     if type(packages) in (str, unicode):
7         packages = packages.split('+')
8     packages = [p for p in packages if p == 'django.conf' or p in settings.INSTALLED_APPS]
9+    if settings.MEDIA_ROOT: packages.append(settings.MEDIA_ROOT)
10     default_locale = to_locale(settings.LANGUAGE_CODE)
11     locale = to_locale(get_language())
12     t = {}
Back to Top