Closed corand closed 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 ;)
Hello, Andoni !
method="POST"
). Example site in this package also use this method: base.html. Have you tried the example site?pip install solid-i18n
(i have now Django==1.6.6 and solid-i18n==0.4.3 installed)git clone git@github.com:st4lk/django-solid-i18n-urls.git
cd django-solid-i18n-urls/example
SOLID_I18N_USE_REDIRECTS
to True
(it is set to False in repo) in example/settings.py.python manage.py runserver
SOLID_I18N_USE_REDIRECTS = False
in settings.py of this site. I choose not to use redirects at all because of some search engines (mostly http://yandex.ru), that works not very will with redirects. But it's worth thinking, maybe i'll change it.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!
Ok. So, the problem is still exists or we can close this issue?
Close it. Thanks agian!
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!