> the _() global translation function is getting reassigned to a
>dictionary. See the test output below.

Weird. Did you add a print to see _what_ is assigned to _? Maybe there
is some code in there where _ is used as an anonymous variable (seen
that in the code in several places) and so the builtin is somehow
clobbered.

A way around this is to either just use the name gettext (that has to
be imported from django.utils.translation) or to do a "from
django.utils.translation import gettext as _" - often this solves such
maskings. _ is identical to gettext in function (and both are picked up
by the xgettext utilities).

_ is a bit weird in Python - for example in the interactive interpreter
it's the "last result" variable and so gets clobbered from time to
time, too.

bye, Georg

Reply via email to