Language estimation

Get help using Construct 2

Post » Fri Mar 10, 2017 7:05 pm

Is there a way to guess, which language the user is using most likely ? e.g. browser or system preferences ?
B
9
S
3
G
4
Posts: 58
Reputation: 2,799

Post » Sun Mar 12, 2017 6:23 pm

http://stackoverflow.com/questions/2316 ... ip-address
Please, PLEASE, do not make the mistake of thinking that IP == language. Look at the browsers accept-language header first, then the browser identification string which might contain the OS language, and only then take the IP into account. In almost 100% of all cases the browser accept-language header will be present and sufficient.

And always give the user the choice to switch to another language.

Just apart from the simple case of a foreigner abroad, how do you determine the language for Belgium, where they speak French, Dutch and German? (Maybe that doesn't apply to your case, but just philosophically. :)).
https://www.ravenheart.ca/home
I don't check the forums much anymore, but I will receive an email for PMs.

"Someone once told me I bite off more than I can chew...

I told them I would rather choke on greatness than nibble on mediocrity."
B
22
S
6
G
1
Posts: 1,418
Reputation: 4,830


Return to How do I....?

Who is online

Users browsing this forum: dand, LowTech, mageekm, oosyrag, Yahoo [Bot] and 26 guests