简体   繁体   English

Flex DateChooser,具有日语和日语风格

[英]Flex DateChooser in chinease and japanease Style

How I can change the display of Month and Year display to Japanese style (ie Year Month) as in Header of Flex DateField. 如何在Flex DateField的标题中将“月”和“年”显示更改为日式(即“年月”)。 What I would like to convert the style July 2011年 to 2011年 7月.[![enter image description here][1]][2] 我想将2011年7月的样式转换为2011年7月的样式。[![在此处输入图片描述] [1]] [2]
How can we change the calender header format ? 我们如何更改压延机头格式? i have used DateField in flex. 我在Flex中使用了DateField。

Try to set 尝试设定

-locale=ja_JP

If you're using Flash Builder, write it below. 如果您使用的是Flash Builder,请在下面编写。
Project > Properties > Flex Compiler > Additional Compiler Arguments 项目>属性> Flex编译器>其他编译器参数

If you want to change Japanese Style dynamically, set the locale both English and Japanese. 如果要动态更改日式风格,请同时设置英语和日语的语言环境。

-locale=en_US,ja_JP

and can change dymamically like this. 并且可以像这样动态变化。

private var resource: IResourceManager = ResourceManager.getInstance();
private function changeLocale(): void{
    if (user selected JP){
        resource.localeChain = ["ja_JP"];
    }else{
        resource.localeChain = ["en_US"];
    }
    resource.update();
}

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM