python - Django javascript catalog view for i18n internationalization -


i'm trying javascript_catalog i18n working, no dice.

followed official guide here

i following while running:

./manage.py makemessages -d djangojs -l fr_ca --settings=settings.local

"commanderror: errors happened while running msguniq". msguniq: error while opening "/webapps/.../djangojs.pot" reading: no such file or directory 

i have in project's urls.py

js_info_dict = {     'packages': ('project_name',), }  urlpatterns += patterns('',    (r'^jsi18n/$', 'django.views.i18n.javascript_catalog', js_info_dict), ) 

added base template:

    <script type="text/javascript" src="{% url 'django.views.i18n.javascript_catalog' %}"></script> 

i have project_name in installed_apps well.

i tried package level @ individual app level, creating locale dir , putting app in 'packages', ...etc. regular makemessages works not js catalog djangojs domain.

please help.

ok, thought html files included 'script' js tag handled javascript catalog. in fact, can tell .js files scanned. when put

gettext('text translate'); 

in .js file worked. error message above indicates there nothing translate.


Comments

Popular posts from this blog

basic authentication with http post params android -

vb.net - Virtual Keyboard commands -

How to get multiresult with multicondition in Sql Server -