Have you seen this approach from  Benoit Hediard ?
 
Philippe Maegerman
Web developer
+32 2 400 40 39
+32 472 35 28 10
 


From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Matt Chotin
Sent: mardi 28 juin 2005 7:30
To: flexcoders@yahoogroups.com
Subject: RE: [flexcoders] globalisation in flex..

Search the docs for the whitelist, it's mentioned in plenty of places.

 

As for your buttons:

 

<mx:Button label="French" click="locale = fr_FR" />

<mx:Button label="English" click="locale = en_US" />

 

Matt

 


From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] On Behalf Of nithya karthik
Sent: Monday, June 27, 2005 10:27 PM
To: flexcoders@yahoogroups.com
Subject: RE: [flexcoders] globalisation in flex..

 

hi Matt,

        I tried the approach 3 but i get an error which says "Http service fault" you are not allowed to access the url http://localhost:8088/flex/globalisatio/en_US.xml via this proxy. This URL is not in the proxy's whitelist. what does it mean?

 

and I tried the approach 2. the code is :

 

<?xml version="1.0"?>
<mx:Application xmlns:mx="http://www.macromedia.com/2003/mxml">
  <mx:Model id="en_US" source="en_US.xml" />
  <mx:Model id="fr_FR" source="fr_FR.xml" />
  <mx:Object id="locale">{en_US}</mx:Object>
  <mx:Form>
    <mx:FormItem label="{locale.name}">
      <mx:TextInput />
    </mx:FormItem>
    <mx:FormItem label="{locale.address}">
      <mx:TextArea />
    </mx:FormItem>
    <mx:FormItem label="{locale.phoneNumber}">
      <mx:TextInput />
    </mx:FormItem>
    <mx:FormItem>
      <mx:Button label="{locale.send}" />
    </mx:FormItem>
  </mx:Form>
</mx:Application>

 

here say i have 2 buttons , one for english and other for french. how should i make it work? please send me the code for this..

 

thanks,

nithya

Matt Chotin <[EMAIL PROTECTED]> wrote:

You're using approach 1 from Manish's blog (http://manish.revise.org/2005/04/resource-bundles-in-flex.html).  I would look into using approach 2 or approach 3 for your problem.

 

Matt

 


From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] On Behalf Of nithya karthik
Sent: Monday, June 27, 2005 10:13 PM
To: flexcoders
Subject: [flexcoders] globalisation 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>

 

resource_bundle.as:

 

var txName = "Name"
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




--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com



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





--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com




--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com




YAHOO! GROUPS LINKS




------------------------------------------------------------------
**STATEMENT OF CONFIDENTIALITY**

This e-mail and any attached files are confidential and intended solely for the use of the individual to whom it is addressed. If you have received this email in error please send it back to the person that sent it to you. Any views or opinions presented are solely those of author and do not necessarily represent those the Emakina Company. Unauthorized publication, use, dissemination, forwarding, printing or copying of this email and its associated attachments is strictly prohibited.

We also inform you that we have checked that this message does not contain any virus but we decline any responsability in case of any damage caused by an a non detected virus.
------------------------------------------------------------------

Reply via email to