Malcolm Tredinnick napsal(a):
> makes 's1' a Unicode object. It's value will be based on the locale when
> it is executed and then never change, no matter what the locale is. So
> anything that is executed at *import* time should not be using
> ugettext(). Since it's a cause of great confusion for some people about
> what when particular lines are executed, I simplified a little in the
> docs and wrote "use ugettext_lazy() everywhere", since it's not actually
> harmful to do so.
Oh, that's the paragraph I've been looking for. Note about *import*
time is crucial. I've should thought about it. Now it makes much more
sense. Everytime I've played with ugettext* I've used it inside
functions and so I didn't noticed this behaviour and everything looked
same for both of them. Maybe, it should be mentioned in documentation also.
--
Tomas Kopecek
e-mail: permonik at mesias.brnonet.cz
ICQ: 114483784
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Django users" group.
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
-~----------~----~----~----~------~----~------~--~---