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

To enter a block of code:

  • enter empty line after your previous text
  • paste or type the code
  • select the code and press the button above
Preview: (hide)
Toms's avatar
767
Toms
asked 12 years ago, updated 12 years ago

Comments

see more comments

2 Answers

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

To enter a block of code:

  • enter empty line after your previous text
  • paste or type the code
  • select the code and press the button above
Preview: (hide)
Toms's avatar
767
Toms
answered 12 years ago, updated 12 years ago
link

Comments

see more comments
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.

To enter a block of code:

  • enter empty line after your previous text
  • paste or type the code
  • select the code and press the button above
Preview: (hide)
Evgeny's avatar
13.2k
Evgeny
answered 12 years ago, updated 12 years ago
link

Comments

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

Toms's avatar Toms (12 years ago)

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

Toms's avatar Toms (12 years ago)
see more comments