Flex 4.5,为日期字段设置语言环境不起作用 [英] Flex 4.5, setting locale for datefield does not work
问题描述
出于某种原因,将应用程序区域设置为 nl_NL 不会影响我的日期字段组件.
For some reason, setting the application locale to nl_NL does not affect my datefield components.
日期仍以英文/格式显示.
Dates are still displayed in english language/formatting.
我尝试使用以下方法:
但这行不通.我做错了什么吗?
But this does not work. Am I doing something wrong?
我想我可以制作一个自定义日期字段组件,在那里我为这些日期提供荷兰语翻译,包括格式,但这是我不喜欢的一种方式......
I guess I could make a custom datefield component, where I supply the dutch translations for those dates, including the formatting, but this is a way I rather not like to go...
推荐答案
我会使用以下内容:
<mx DateField id = "dateField"
dayNames ="["S", "M", "D", "M", "T", "F", "S"]"
monthNames="["januari", "February", "March", "April", "May",
"June", "July", "August", "September", "October",
"November", "December"]" />
与 formatString 选项一起,您应该得到您正在寻找的内容.我知道这些都是英文的,除了一月,但我不知道荷兰月份的名字...
Along with the formatString option you should get what you are looking for. I know those are all English except January, but I don't know the Dutch month names...
这篇关于Flex 4.5,为日期字段设置语言环境不起作用的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!