On 12.07.2011, at 12:15, akaariai wrote:

> On Jul 12, 12:28 pm, Jannis Leidel <[email protected]> wrote:
>> Yeah, django.utils.formats.localize is the main function to localize
>> a value using the format localization engine from Python. The missing
>> documentation is a bug, IMO.
> 
> Just a minor correction: localize does not use the localization engine
> from Python, it uses Django's inbuilt localization. Python's
> localization can't be trusted to be thread-safe (although on some
> platforms it probably is). This is not a big point, except that the
> inbuilt localization engine is slower than Python's. One is written in
> Python, the other uses system libraries written in C.

Thanks, you're right. I meant to say:

django.utils.formats.localize is the function you can use to localize
a value using *Django's* format localization engine *in your Python code*.

English-as-a-second-language'ly yours,
Jannis

-- 
You received this message because you are subscribed to the Google Groups 
"Django developers" 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-developers?hl=en.

Reply via email to