st4lk / django-solid-i18n-urls

[DEPRECATED] Use default language for urls without language prefix.
http://www.lexev.org/en/
Other
112 stars 29 forks source link

Where does it look the user preference language? #5

Closed corand closed 10 years ago

corand commented 10 years ago

By default in Django, when a user chooses another language, next time the same user accesses to the web, will be redirected to that language. For example:

In "foo.com", user changes the language to "en", so it is redirected to "foo.com/en/".

Next time this user goes to "foo.com", will be redirected to "foo.com/en/". This is the behaviour I was expecting from your "SOLID_I18N_USE_REDIRECTS = True". But this is not happening.

Where are you looking the user preference language? Maybe in the browser preference rather than in the cookies?

Anyway, thanks, good job!

corand commented 10 years ago

Another example: If I go to your site "http://www.lexev.org/", and I change the language to "en". Don't you think that next time I access to "http://www.lexev.org/" I should be redirected to "http://www.lexev.org/en/"?

Thanks again ;)

st4lk commented 10 years ago

Hello, Andoni !

corand commented 10 years ago

Finally decided to put the language prefix just on indivdiual post views (specially thinking on social shares). In the rest of the site I still follow with the Django default way. Anyway, thanks for the answer, I'll keep it in mind!

st4lk commented 10 years ago

Ok. So, the problem is still exists or we can close this issue?

corand commented 10 years ago

Close it. Thanks agian!