Click here to Skip to main content
15,884,176 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
Hi,

I've developed a globalised application which uses the Request Header information such as language to decide which country my user is from and then display a date control, amongst others, formatted with their locality settings.

The issue I'm having, especially when entering into the mobile arena, is that most devices are poorly configured.

The language passed is en-US and not en-GB. The worst culprits being WP8 and iPads.

Other websites, which I believe to be globalised, don't appear to have this issue on those device.

What strategy should I use to get the most accurate location for formatting my interface?

The option which come to mind are:

Use the submitted language
Use client geolocation
Use regional DNS/servers fixing the local on the server

Non of these seem to tick all the boxes. What other options are there?

Kind Regards,

Stephen
Posted

1 solution

No "perfect" answer possible.
The users might select the language / regional settings from a menu, then you could store that in a cookie and apply when they visit again. Of course, that won't work with the first visit.
Also users might configure their browsers with other languages being preferred. I configured Firefox to request "en, en-US, de, de-DE" because I am fed up with automated translations (as e.g. offered by MSDN) ...
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900