to quote the django internationizaton documentation...

"Using ugettext_lazy() and ungettext_lazy() to mark strings in models
and utility functions is a common operation. "

Getting data from your models requires you to place
django.utils.translation.ugettext_lazy() functions within the
arguments that you pass to the fields
that you create for your models.

you'll find your examples here.
http://docs.djangoproject.com/en/dev/topics/i18n/?from=olddocs#lazy-translation

Then you can use the same message (po) files you use when rendering
static strings in templates

Hope this helps


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-users@googlegroups.com
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to