Django (like other frameworks) listen to specific headers to check for
languages (namely :
https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Accept-Language).
That is the same on all devices.

The way we know what language to display the website in is through the
browsers sending this information to us. So the browsers have to be setup
to include the correct language - which usually is the case. However I have
all of my devices setup to display swedish - except firefox on my laptop -
which is setup for english. My guess is that the users browser also is
setup for english. I would check to see how the same browser on another
android phone reacts to your site. You can try this on browserstack for
example.

Regards,

Andréas

2017-11-04 10:51 GMT+01:00 'steph' via Django users <
django-users@googlegroups.com>:

> Hello,
>
> I added translations to my django site - and it seems to work on desktop
> browsers. But on mobile phones not so: a user told me, he got the site in
> english despite his Samsung phone being setup in German.
>
> What can I do to detect the device language correctly?
>
> Thanks,
> Stephan
>
> --
> You received this message because you are subscribed to the Google Groups
> "Django users" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to django-users+unsubscr...@googlegroups.com.
> To post to this group, send email to django-users@googlegroups.com.
> Visit this group at https://groups.google.com/group/django-users.
> To view this discussion on the web visit https://groups.google.com/d/
> msgid/django-users/e3aeb85c-93f7-4017-8c0c-3ab8ce580740%40googlegroups.com
> <https://groups.google.com/d/msgid/django-users/e3aeb85c-93f7-4017-8c0c-3ab8ce580740%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
> For more options, visit https://groups.google.com/d/optout.
>

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-users+unsubscr...@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CAK4qSCeUAyXeqEHYWTJjdaPaK7ODDwSi1NShLLxmJwevaE16ZA%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to