python - django-rosetta translated phrases not appearing on pages -
i've got bunch of strings marked translation in python code.
for example:
remarks_sample = forms.charfield( label = _('remarks'), widget = forms.textarea(attrs = { 'placeholder': _("remarks"), }) ) i've ran django-admin.py makemessages , translated phrases in rosetta admin. i'm trying figure out why translated phrases arn't showing on pages.
were files written django-rosetta? if rosetta can't write content .po files (e.g. because not writable web server process) it'll keep them in memory (you can download translations, , replace files.)
also, can run django-admin.py compilemessages explicitly compile updated .po files .mo files, read django, before restarting webserver.
also, _ aliased ugettext or ugettext_lazy? should latter.
Comments
Post a Comment