Hi,
I'm having the following code:
Models:
untranslated = "Foo"
translated = ugettext(untranslated) # Hopefully "makemessages" will read
this
insert_in_database(untranslated)
Later in a View:
text = get_from_database();
And I pass it to a template where I do:
{% trans text %}
This is not working (although I swear it was working when I first wrote it!)
Do you know how to get this work?
Please do not suggest that I don't store text that will be translated in
the database, because I would have to do a lot of hacking on a third party
component to make it work that way :)
Thank you!
--
You received this message because you are subscribed to the Google Groups
"Django users" group.
To view this discussion on the web visit
https://groups.google.com/d/msg/django-users/-/jpCSBlg1UwgJ.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/django-users?hl=en.