﻿id	summary	reporter	owner	description	type	status	component	version	severity	resolution	keywords	cc	stage	has_patch	needs_docs	needs_tests	needs_better_patch	easy	ui_ux
5494	javascript_catalog generic view only search catalogs in application/locale and not in project/locale	anonymous	Ramiro Morales	"In [http://www.djangoproject.com/documentation/i18n/#message-files 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:
{{{
#!python
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 }}}:
{{{
#!python
js_info_dict = {
    'domain': 'djangojs',
    'packages': ('blogproj.blog',),
}

urlpatterns = patterns('',
    (r'^jsi18n/$', 'django.views.i18n.javascript_catalog', js_info_dict),
}}}
"		closed	Internationalization	dev		fixed	javascript i18n	Robin stodge@… claude@… djangobugs@… jweyrich@…	Accepted	1	1	0	0	0	0
