Invision Community 4: SEO, prepare for v5 and dormant account notifications Matt November 11, 2024Nov 11
Posted June 25, 20159 yr Hi. It is possible to autodetect a user language? Someone told me that is possible, but I want to confirm it because in my forum my language isn't being autodetected (my language is portuguese but always load the english language).
June 25, 20159 yr There's a flaw in the design that locale and language pack are tied together and it's the autodetected browser locale that is compared to the language pack locale. So if you want the locales of UK, USA, Australia in Canda to all detect as English, you have to have 4 copies of the English pack.For the auto detection to work all these need to be true:Language pack locale and browser locale matchUser has not manually selected a language. Check in the ACP on the member that language is set to "auto detect".To put all members back into auto-detect mode you have to select the language pack that is set as the default and click "Set as Members' language" which seems to put everyone back into autodetect mode rather than hard coding that language.
June 25, 20159 yr Author But it work for guests? Because my IP Address Tool is showing my right location, the language is set to auto detect and I still seeing the forum in english language: My IP Tools is showing that my IP is from Brazil, and it is matching with the language pack locale, but still showing the english language. My preferences:
June 25, 20159 yr Let me check. I've got my board setup for USA default, but I also added a UK pack for me in the UK. It's working as a member, but let me try as a guest.Edit: Yes, it worked as a guest, I got the UK language selected. Are you sure your language pack locale and browser locale match?
June 25, 20159 yr Author Ok, just made a copy of the USA language and changed the locale to UK. Link to my forum is: link
June 25, 20159 yr Yes that selected United Kingdom for me, so it worked.What does your browser say is your User Language on here? : http://mybrowserinfo.com/detail.asp?bhcp=1
June 26, 20159 yr Author It is saying: Country: (BR) Brazil Region: Rio De Janeiro City: Rio De Janeiro Language: Portuguese System Language: Not detectable with this browser User Language: pt-br
June 27, 20159 yr i submitted support tickets about this and still waiting for replay one of my sites run in arabic language so i set it as the default language and i did hide the english language since i don't want to use it in front end at all so if any one visited my site from safari they see the website in english even if it's hidden and only available to administrator account onlybut if they visit the site with chrome or firefox the site will be in arabic the correct language that i want my users use to browse my site hopefully they fix it soon
Archived
This topic is now archived and is closed to further replies.