Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
I've tested this on several iPhones but they were all Japanese ones so it might be a problem with this country only.
Anyway, locale_language_from_browser() doesn't seem to return anything for iPhones on iOS Safari browsers. Going to the same site URL on a desktop machine with a Japanese browser worked, but the same page on an iPhone didn't detect browser language correctly.
Comments
Comment #1
cosmicdreams CreditAttribution: cosmicdreams commentedThis webpage: http://stackoverflow.com/questions/905595/how-to-get-the-language-settin...
claims that the proper HTTP header is being sent by safari within an iPhone. So if there IS a bug here, we should be seeing a wider audience for the bug than just iphones.