Flex 4.5,为datefield设置语言环境不起作用 [英] Flex 4.5, setting locale for datefield does not work
问题描述
出于某种原因,将应用程序语言环境设置为nl_NL不会影响我的日期字段组件。
日期仍以英文/格式显示。 b
$ b
我尝试使用以下内容:
但这不起作用。我做错了什么?
我想我可以做一个自定义日期栏组件,在那里我提供荷兰语翻译这些日期,包括格式,但这是一种方式我不喜欢去...
我将使用以下内容:
< mx DateField id =dateField
dayNames =[S,M,D,M,T ,F,S]
monthNames =[januari,February,March,April,May,
June,July, 八月,九月,十月,
十一月,十二月]/>
与formatString选项一起,您应该得到您正在寻找的内容。我知道这些都是一月份以外的英文,但我不知道荷兰的月份名字...
For some reason, setting the application locale to nl_NL does not affect my datefield components.
Dates are still displayed in english language/formatting.
I tried using the following:
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...
I would use the following:
<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"]" />
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,为datefield设置语言环境不起作用的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!