500: Pages should be in one language only

johs****@gmai***** (Google Code) (Is this you? Claim this profile.)
Sept. 6, 2008
What's the URL of the page containing the problem?
http://demo.review-board.org/account/login/?next_page=/dashboard/

What steps will reproduce the problem?
1. Set your browser to use "Norwegian, Bokmål" as the preferred language 
for web content
2. Visit URL

What is the expected output? What do you see instead?
A login page in Norwegian, or failing that, a login page in English.

Instead, the page is in English with a few words translated: e.g the menu 
says "All review requests", "Grupper", "Submitters" (the middle one is 
translated). Having two languages side by side without being able to tell 
which is which is much more confusing than just having one language (even 
if it is not my #1 preferred language).

What operating system are you using? What browser?
Using Opera. I assume the same is true for other browsers.

Please provide any additional information below.
Yes, I know this is because the translation is not complete, but the 
language should be 95%+ translated before it is put into production, IMO.
chipx86
#1 chipx86
We can never fix this to everyone's satisfaction.

Some of the translation comes from Django, some comes from us. We can't turn it
on/off on a per-language basis. We could provide a complete Norwegian translation,
but then Japanese users will also hit issues. We also, to my knowledge, cannot
disable Django's translations (especially not on a per-language basis). I don't think
we have a good solution except to get people to provide translations.
david
#2 david
I believe you'll get entirely english if you add this to your settings_local.py:

USE_I18N = False

This should suffice until we've actually got some translations done.
chipx86
#3 chipx86
Once we define the list of languages we support, we'll get this for free, since we'll
override Django's languages list.
  • +Milestone-Release1.0
chipx86
#4 chipx86
  • +EasyFix
david
#5 david
We should just define it to (en,) for now
david
#6 david
Fixed in SVN r1487. Thanks!
  • +Fixed