also I write the following code in the creationComplete method of app
ResourceManager.getInstance().localeChain = ["zh","en","ja"];
am i doing right?
1 person found this helpful
Did you add the following in the compiler options?
Thank you for your reply,Romil.
But after I googling for the compile option of air,I have not find any docs describe this topic.can you give me some details?
Let me know if the following documentation helps:
I read the docs,it seems to config the app localization.And i also refer to this page
it's the thing config the ApplicationUpdaterDialogs,and also i find the key to the labels of ApplicationUpdaterDialogs in this page
But i still have no idea of how to write in a correct forms
var sortedLocales:Array = LocaleUtil.sortLanguagesByPreference(['zh_Hans', 'zh_Hant',Capabilities.languages, "zh_Hant");
ResourceManager.getInstance().localeChain = sortedLocales;
Using above codes,my ApplicationUpdaterDialogs comes to be the Chinese,Air already does the stuff for us.I am still not very clear abour how it works.I guess air will read local from our machines and then match the localeChain,if finds our locals in array,then using the defalut ones to display,if not,using english.
Yes, you are correct.
Here comes the new problem, when i config the default local to "zh_Hans".The default text of Alert.show() comes to be null.And I find it's a unit property.Then how can I set the text of my Alert boxes? I also tried to set like this
alert = Alert.show("密码控件版本过低，请下载并安装最新版本","警告", Alert.OK ,null ,closeSecHandler);
alert.text = "AAA";
When I debug it's AAA inside alert.But it shows null at front.
Another question,I writes the handler of close event of my Alert boxes like following
private function closeSecHandler(event:CloseEvent):void
But my app still alives in my task mananager. I must kill it manaully.what's going on?
help me,help you.
I find something , if the url is navigated Fifefox,the app is still, if ie ,it's killed,
but how could i kill the thread if it's navigated to Firefox
1. Characters not showing up in zh_Hans locale
Are you sure that you are not using any particular font in your style sheets?
2. Application not exiting
Does it exit after some time (few minutes) or it doesn't exit at all?