Nithya,
Don't mind, you have just posted the same question in
another thread. You don't need to start another thread. It un necessarily adds
the noise :)
Hope you understand...
-abdul
From: [email protected] [mailto:[EMAIL PROTECTED] On Behalf Of nithya karthik
Sent: Tuesday, June 28, 2005 10:43 AM
To: flexcoders
Subject: [flexcoders] resource bundles in flex
hai,
I had posted a question regarding multilanguage usage in
flex and manish had sent me a link.. The code of the link is as follows:
MXML:
<?xml version="1.0"?>
<mx:Application xmlns:mx="http://www.macromedia.com/2003/mxml">
<!--<mx:Script source="resource_bundle.as" />-->
<mx:Script source="resource_bundle_fr_FR.as" />
<mx:FormItem label="{txName}">
<mx:TextInput />
</mx:FormItem>
<mx:FormItem label="{txAddress}">
<mx:TextArea />
</mx:FormItem>
<mx:FormItem label="{txPhoneNumber}">
<mx:TextInput />
</mx:FormItem>
<mx:FormItem>
<mx:Button label="{txSend}" />
</mx:FormItem>
</mx:Form>
</mx:Application>
<mx:Application xmlns:mx="http://www.macromedia.com/2003/mxml">
<!--<mx:Script source="resource_bundle.as" />-->
<mx:Script source="resource_bundle_fr_FR.as" />
<mx:FormItem label="{txName}">
<mx:TextInput />
</mx:FormItem>
<mx:FormItem label="{txAddress}">
<mx:TextArea />
</mx:FormItem>
<mx:FormItem label="{txPhoneNumber}">
<mx:TextInput />
</mx:FormItem>
<mx:FormItem>
<mx:Button label="{txSend}" />
</mx:FormItem>
</mx:Form>
</mx:Application>
resource_bundle.as:
var txName = "Name"
var txAddress = "Address"
var txPhoneNumber = "Phone Number"
var txSend = "Send"
var txAddress = "Address"
var txPhoneNumber = "Phone Number"
var txSend = "Send"
resource_bundle_fr_FR.as:
var txName = "Nom"
var txAddress = "Adresse"
var txPhoneNumber = "Numéro De Téléphone"
var txSend = "Envoyez"
What I need from this is, say i have 2 buttons in the mxml application
namely 'English' and 'French'.. when i click the english button the form
labels should display the english text and when i click on the
french button the form lebels should display the french text..
How to accomplish this? please help with the code..
Thanks,
Nithya
Send instant messages to your online friends http://uk.messenger.yahoo.com
--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search
Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com
---- LSpots keywords ?>---- HM ADS ?>
--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com
---- LSpots keywords ?>
---- HM ADS ?>
YAHOO! GROUPS LINKS
- Visit your group "flexcoders" on the web.
- To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]
- Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.

