OdifYltsaeb / django-multilingual

Automatically exported from code.google.com/p/django-multilingual
MIT License
0 stars 0 forks source link

Default language not loading first #119

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. Have two languages set on the LANGUAGES tuple
2. Set the DEFAULT_LANGUAGE to 2
3. Load the page http://localhost:8000

What is the expected output? What do you see instead?
Expected to see the 2 language loaded first but Im seeing the 1 language 
instead. 

What versions of django and multilingual are you using? On what operating 
system?
Using trunk version of multilingual and Django 1.1.1, OSX Snow Leopard

Please provide any additional information below.
I have two languages set as

LANGUAGES = (
    ('en', ('English')),
    ('pt-br', (u'Português'))
)

I want pt-br to load as my default language, despite the user system/browser 
language its in, so 
I have

DEFAULT_LANGUAGE = 2

But I can't seem to load the pt-br first, both, my system and my browser is in 
english, maybe 
thats the issue, is it possible to override it? If I change manually it works 
fine.

Thanks.

Rodrigo

Original issue reported on code.google.com by r.penlo...@gmail.com on 31 May 2010 at 12:13

GoogleCodeExporter commented 8 years ago
Yep, that's illogical. Primary language should be first.

Original comment by tezro...@gmail.com on 15 Dec 2010 at 7:46