luizmoraes Posted June 25, 2015 Posted June 25, 2015 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).
AutoItScript Posted June 25, 2015 Posted June 25, 2015 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.
luizmoraes Posted June 25, 2015 Author Posted June 25, 2015 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:
AutoItScript Posted June 25, 2015 Posted June 25, 2015 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?
luizmoraes Posted June 25, 2015 Author Posted June 25, 2015 Ok, just made a copy of the USA language and changed the locale to UK. Link to my forum is: link
AutoItScript Posted June 25, 2015 Posted June 25, 2015 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
luizmoraes Posted June 26, 2015 Author Posted June 26, 2015 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
luizmoraes Posted June 27, 2015 Author Posted June 27, 2015 Any idea? Should I create a Support Request?
Ali Majrashi Posted June 27, 2015 Posted June 27, 2015 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
Recommended Posts
Archived
This topic is now archived and is closed to further replies.