Django: how to create / use message translations from django.po for JavaScript (djangojs)?

I played with client side localization. So I want to collect messages for djangojs from python and html files, but this did not work

Django Version 1.3, Gettext Utilitest Installed on the System

django-admin.py makemessages -d djangojs -l ru -e html,py

Does anyone know how to create / use message translations from django.po for JavaScript (djangojs)?

For example, I put only tags ngettext("Hello world")for testing reasons in a certain file jsand, finally, did not get into the djangojs.po file.

The sultan

+5
source share
1 answer

I am the author of this question: Django 1.2.3 - Internationalization - makemessages does not detect all lines .

, , , . , makemessages javascript , . gettext javascript, Perl.

: Javascript lexer Python

: Ticket 7704. Django 1.4.

, PO , , django 1.4 RC, , .

+4

All Articles