Flex NumberFormatter 根据 Windows
是否可以直接根据windows设置NumberFormatter的属性
“区域设置”?
如果没有的话,Flex中有一个函数我们可以通过它得到 区域设置,然后我们可以更改NumberFormatter的属性 根据它。
Is it possible to directly set the properties of NumberFormatter according to windows
" Regional Setting "?
If not, it there a function in Flex by which we can get
the Regional Setting, and then we can change the properties of NumberFormatter
according to it.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
以下是有关 Flex 中本地化工作原理的一个很好的教程:
http ://livedocs.adobe.com/flex/3/html/help.html?content=l10n_1.html
至于检测用户的区域和/或语言,您可以在 ActionScript 中尝试:
或者类似Javascript 中的 this(通过 Flash 的外部接口调用):
Here's a good tutorial on how localization works in Flex:
http://livedocs.adobe.com/flex/3/html/help.html?content=l10n_1.html
As far as detecting the user's region and/or language you can try this in ActionScript:
Or perhaps something like this in Javascript (invoked through Flash's ExternalInterface):