Hi,

On Fri, Jul 17, 2009 at 9:14 AM, Adrián Ribao<ari...@gmail.com> wrote:
>
> Hello everybody,
>
> I have an multi language site with a form in the home. If I change the
> language of the site everything changes but the form takes a few
> minutes before I see it in the right language.
>
> If I reload the server the form is visualized ok, but this is not the
> right behaviour.
>
> The code of the form is somethin like:
> from django.utils.translation import ugettext as _

You need ugettext_lazy instead of ugettext when declaring forms:
from django.utils.translation import ugettext_lazy as _

Read about it here:
http://docs.djangoproject.com/en/dev/topics/i18n/#lazy-translation


Matthias

--~--~---------~--~----~------------~-------~--~----~
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 
django-users+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to