Hi, I am trying to execute Localization Project from Tour De Flex, Don't that where to set the properties of English & French Language given below.. Anybody please help me......
-------------------Localization.mxml-------------------------- <?xml version="1.0" encoding="utf-8"?> <mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" xmlns="*" backgroundGradientColors="[0x000000,0x323232]" viewSourceURL="srcview/index.html"> <!-- Before compiling this application on your system: 1. Add the following compiler arguments: -locale=en_US,fr_FR -source-path=locale/{locale} 2. Open a Command prompt/shell, navigate to the bin directory of your Flex SDK (for example: C:\Program Files\Adobe\Flex Builder 3 Plug-in\sdks\3.0.1\bin), and execute the following command: copylocale en_US fr_FR --> <mx:Metadata> [ResourceBundle("myResources")] </mx:Metadata> <mx:Style> Label { color: #FFFFFF; } </mx:Style> <mx:Script> <![CDATA[ [Bindable] private var locales:Array = [ {label: "English", code:"en_US"}, {label: "Français", code:"fr_FR"} ]; private function changeHandler(event:Event):void { resourceManager.localeChain = [ localeComboBox.selectedItem.code ]; } ]]> </mx:Script> <mx:HBox width="100%" horizontalAlign="right"> <mx:Image source="{resourceManager.getClass('myResources', 'LOGO')}"/> <mx:Spacer width="100%"/> <mx:Label text="{resourceManager.getString('myResources', 'SELECT_LANGUAGE')}:"/> <mx:ComboBox id="localeComboBox" dataProvider="{locales}" change="changeHandler(event)"/> </mx:HBox> <ContactForm/> </mx:Application> -----------------------------ContactForm.mxml------------------------ <?xml version="1.0" encoding="utf-8"?> <mx:Form xmlns:mx="http://www.adobe.com/2006/mxml"> <mx:FormItem label="{resourceManager.getString('myResources', 'FIRST_NAME')}"> <mx:TextInput/> </mx:FormItem> <mx:FormItem label="{resourceManager.getString('myResources', 'LAST_NAME')}"> <mx:TextInput/> </mx:FormItem> <mx:FormItem label="{resourceManager.getString('myResources', 'CITY')}"> <mx:TextInput/> </mx:FormItem> <mx:FormItem label="{resourceManager.getString('myResources', 'ZIP')}"> <mx:TextInput/> </mx:FormItem> <mx:FormItem label="{resourceManager.getString('myResources', 'DOB')}" direction="horizontal"> <mx:DateField id="df" formatString="{resourceManager.getString('myResources', 'DATE_FORMAT')}"/> <mx:Label text="({resourceManager.getString('myResources', 'DATE_FORMAT')})"/> </mx:FormItem> <mx:FormItem> <mx:Button label="{resourceManager.getString('myResources', 'SAVE')}"/> </mx:FormItem> </mx:Form> --------en_US/myResources.properties---------------- FIRST_NAME=First Name LAST_NAME=Last Name ADDRESS=Address CITY=City ZIP=Zip DOB=Date of Birth SAVE=Save SELECT_LANGUAGE=Select a language LOGO=Embed("assets/logo_en.png") DATE_FORMAT=MM/DD/YYYY --------en_FR/myResources.properties---------------- FIRST_NAME=Prénom LAST_NAME=Nom ADDRESS=Adresse CITY=Ville ZIP=Code Postal DOB=Date de Naissance SAVE=Sauver SELECT_LANGUAGE=Choisissez une langue LOGO=Embed("assets/logo_fr.png") DATE_FORMAT=DD/MM/YYYY -- Thanks & Regards, Jagan Mady's --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Flex India Community" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/flex_india?hl=en -~----------~----~----~----~------~----~------~--~---

