Hi,
from django.utils.translation import ugettext as _
My guess is that if you import ugettext, then you should supply a
Unicode string as an argument:
def index(request):
teststring = _(u"Lösung")
[...]
(notice the 'u' before the string).
That works here, at least using an utf-8
Hi list,
my django is completely utf8-configured. I'm using I18N and my msg-ids
(po-files) are utf8-encoded, too.
But now I've run into a strange problem: Translation of strings
containing non-ascii characters is working great in templates, but it
fails if I try to translate non-ascii strings
2 matches
Mail list logo