problem with i18n (blocktrans)

5 views
Skip to first unread message

pihentagy

unread,
Oct 15, 2008, 5:42:55 AM10/15/08
to Django users
Hi all!

Can somebody please tell me what's wrong with my template and/or po
file?

trans tags work fine, but blocktrans isn't translated.

http://dpaste.com/hold/84553/

thanks
pihentagy

pihentagy

unread,
Oct 15, 2008, 11:52:46 AM10/15/08
to Django users
Ok, I have figured out.

You should never use non-unix-style line-endings in your templates,
because blocktrans will not work :-/

Malcolm Tredinnick

unread,
Oct 15, 2008, 8:37:42 PM10/15/08
to django...@googlegroups.com

On Wed, 2008-10-15 at 08:52 -0700, pihentagy wrote:
> Ok, I have figured out.
>
> You should never use non-unix-style line-endings in your templates,
> because blocktrans will not work :-/

Hmm. That doesn't sound very convenient, since it basically means you
can't use a normal Windows editor. I thought we'd fixed a whole bunch of
that class of bugs in r8576, a couple of months ago. Are you running
Django 1.0?

If so, can you please open a ticket about this, since it looks like
we've missed a case. Perhaps Django no longer explodes when reading such
files, but it doesn't make a match when doing the translation.

Regards,
Malcolm

Reply all
Reply to author
Forward
0 new messages