Talk:Flex 3:Feature Introductions: Runtime Localization
From Adobe Labs
This new function is great but what about WYSIWYG. The builder is great it would be quite easy to use the resourceManager in the WYSIWYG editor to display the localized text to fine tune the interface.
if you mean by that that you are annoyed with having the design view polluted by the actionscript content, An Easy solution for that ( for small sized projects)is to hardcode in your design the labels text etc and add a creationComplete Event to assign for each properties you want to localize the link to your resources:
<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" creationComplete="creationCompleteHandler();" >
then in your script:
private function creationCompleteHandler():void
{
mx_label_id.text = resourceManager.getString('myResources', 'GREETING');
}
in your content:
<mx:Label id="mx_label_id" text="default" fontSize="48"/>
Localizing more than just text...
Ok, this kind of localization is a first step, but what about number and date formats? Is there any way I can do it with the current SDK?
gud article but........... what is the usage?
hey am really confuse :( help me out what you peoples are doing is puting some hard code sentenses in property file:S is this what we will do in our gian applicaiton ? what if a text box is there ... and current lcale is English and then i chagne it to french on run time? then text box is suppose to take input in french
or
if a label is there????? and its text is " this is a label text" when i switch to french lcale? it should be change rite? we can not put a huge list of hard code senttenses????????
what is the use of those EN n FR , Ja folder in framework:S??????? what they are doinggggggggggggggg?
i think am confuse help me
