Am 15.08.2007 um 16:52 schrieb Michael Radziej:
> currently, django/conf/__init__.py still sets __builtins__['_'] =
> gettext.
>
> This causes a UnicodeDecodeError in code like the following line
> when the
> the translated message contains non-ASCII characters:
>
> _('some message: %s').someModel.name
>
> Shouldn't _ better evaluate to ugettext?
See also <http://code.djangoproject.com/ticket/5056>
(I still don't see why you'd ever want the bytestring variants of
gettext, but don't want to waste any more time arguing about this
stuff).
Cheers,
Chris
--
Christopher Lenz
cmlenz at gmx.de
http://www.cmlenz.net/
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---