First time here? Check out the FAQ!
1

Logout bug in Russian (and possibly other translations)

On my ru locale site, I see the error 404 page after logging out.

instead of something like " successful logout .."

After logging out I'm redirected to:

http://mysite.com/account/signin/?next=/polzovatel/vyhod/

Edit: With this in settings.py

ASKBOT_TRANSLATE_URL = False

I get this url: http://mysite.com/account/signin/?next=/account/vyhod/

with 404 error

Toms's avatar
767
Toms
asked 2012-07-25 07:33:55 -0500, updated 2012-07-26 15:26:40 -0500
edit flag offensive 0 remove flag close merge delete

Comments

add a comment see more comments

2 Answers

1

I think it is an error in the Russian translation of the url. Try setting

ASKBOT_TRANSLATE_URL = False

Does the problem go away?

This occurs because some urls are translated in two places - django.po and djangojs.po. Should be just in one place, otherwise there is a potential for the bugs like this one.

Evgeny's avatar
13.2k
Evgeny
answered 2012-07-25 16:05:10 -0500, updated 2012-07-25 16:12:06 -0500
edit flag offensive 0 remove flag delete link

Comments

Hi @Evgeni! I've tried ASKBOT_TRANSLATE_URL = False, but unfortunately the problem is still there.

Toms's avatar Toms (2012-07-26 15:09:06 -0500) edit

Ok, I got the solution. See update. Your hint was correct. Thanks

Toms's avatar Toms (2012-07-26 15:20:48 -0500) edit
add a comment see more comments
1

Solution was:

ASKBOT_TRANSLATE_URL = False

and this in the django.po of ru locale

#: deps/django_authopenid/urls.py:10
msgid "signout/"
msgstr ""

now I have

http://mysite.com/account/vyhod/

And no error.

-------------------------------------

Edit: It is not necessary to set

ASKBOT_TRANSLATE_URL = False
Toms's avatar
767
Toms
answered 2012-07-26 15:26:53 -0500, updated 2012-07-27 05:33:03 -0500
edit flag offensive 0 remove flag delete link

Comments

add a comment see more comments