In i18n docs said that message files are searched in (fragment copied from i18n.txt):
* The root ``django`` directory (not a Subversion checkout, but the one
that is linked-to via ``$PYTHONPATH`` or is located somewhere on that
path).
* The root directory of your Django project.
* The root directory of your Django app.
But it doesn't work for javascript catalogs. If you have a project named blogproj and an aplication named blog , you cannot put javascript catalogs in blogproj/locale . This urls.py doesn't work:
js_info_dict = {
'domain': 'djangojs',
'packages': ('blogproj',),
}
urlpatterns = patterns('',
(r'^jsi18n/$', 'django.views.i18n.javascript_catalog', js_info_dict),
But if you have message files in blogproject/blog/locale , it works with this urls.py :
js_info_dict = {
'domain': 'djangojs',
'packages': ('blogproj.blog',),
}
urlpatterns = patterns('',
(r'^jsi18n/$', 'django.views.i18n.javascript_catalog', js_info_dict),