On Tue, 2007-08-21 at 21:25 +0200, Tomas Kopecek wrote:
> 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.

The whole i18n.txt document is on the table for a rewrite when I get
some spare time. At the moment it's a bit of a mess. Explaining what
functions to use when is one of the things I'm unhappy about, so, yes, I
want to fix that.

Regards,
Malcolm

-- 
If you think nobody cares, try missing a couple of payments. 
http://www.pointy-stick.com/blog/


--~--~---------~--~----~------------~-------~--~----~
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