全球化和错误配置的设备 [英] Globalisation and Wrongly Configured Devices

查看:101
本文介绍了全球化和错误配置的设备的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述





我开发了一个全球化的应用程序,它使用 Request Header 等语言信息决定我的用户所在的国家/地区,然后显示日期控件,其中包括使用其地区设置格式化的日期控件。



我遇到的问题,尤其是在进入时进入移动领域,是大多数设备配置不当。



通过的语言是 en-US 和不是 en-GB 。最糟糕的罪魁祸首是WP8和iPad。



我相信全球化的其他网站似乎没有这个问题。



我应该使用什么策略来获得格式化界面的最准确位置?



想到的选项是:



使用提交的语言

使用客户地理位置

使用修复本地的区域DNS /服务器服务器



其中没有一个似乎勾选所有方框。还有什么其他选择吗?



亲切的问候,



Stephen

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

推荐答案

没有完美答案可能。

用户可以从菜单中选择语言/区域设置,然后您可以将其存储在cookie中并在访问时应用再次。当然,这不适用于第一次访问。

此外,用户可能会将其他语言配置为首选浏览器。我将Firefox配置为请求en,en-US,de,de-DE,因为我厌倦了自动翻译(例如由MSDN提供)......
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) ...


这篇关于全球化和错误配置的设备的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆