I've the problem, template for dynamic JS file is main.js located in TEMPLATE_DIRS. When I do ./manage.py makemessages -a all messages {% trans "MSG" %} are fetched but not from main.js template. Of course I can rename main.js to main.js.html, is any pretty way? ./manage.py makemessages -d djangojs — dont help.
A:
You can specify extensions in makemessages
command (see django docs):
django-admin.py makemessages -d djangojs -l de -e js -e html,txt
alex vasi
2010-04-13 22:13:44