We focused the design on loading compiled resources in order to support 
complete localization -- images, sounds, sorting methods, etc., not just 
strings in textual .properties or .xml files. But, as you discovered, the 
ResourceManager lets you dynamically add  ResourceBundles and populate them 
from any source with your own code.

Gordon Smith
Adobe Flex SDK Team

From: [email protected] [mailto:[email protected]] On Behalf 
Of Yves Riel
Sent: Wednesday, January 21, 2009 5:00 AM
To: [email protected]
Subject: RE: [flexcoders] internationalization

The only problem I have with resource modules is that they are compiled into 
swf. Our users require that the language files be accessible using notepad or 
any text editor so I cannot use Flex. A typical example would be a lexicon file 
where the user could add terms at any time. We had to load the file separately 
and push it into the resource manager. Of course we lose bandwidth but it's 
what our user base needs. I was just curious to see if other were doing it this 
way.

________________________________
From: [email protected] [mailto:[email protected]] On Behalf 
Of Haykel BEN JEMIA
Sent: Wednesday, January 21, 2009 5:12 AM
To: [email protected]
Subject: Re: [flexcoders] internationalization
Yes, they are called resource modules! Thanks Gordon!

http://livedocs.adobe.com/flex/3/html/l10n_5.html#158277


Haykel Ben Jemia

Allmas
Web & RIA Development
http://www.allmas-tn.com



On Tue, Jan 20, 2009 at 10:37 PM, Gordon Smith 
<[email protected]<mailto:[email protected]>> wrote:

Haykel is probably talking about loading a resource module. The resource 
bundles in a resource module automatically get added to the ResourceManager.



Gordon Smith

Adobe Flex SDK Team



From: [email protected]<mailto:[email protected]> 
[mailto:[email protected]<mailto:[email protected]>] On 
Behalf Of Yves Riel
Sent: Tuesday, January 20, 2009 4:16 AM
To: [email protected]<mailto:[email protected]>
Subject: RE: [flexcoders] internationalization



Haykel, out of curiosity, when you load them dynamically at run-time, do you 
pass them to the resource bundle manager? That's what we did but I'm curious to 
see what other did and if there are a open source libraries that do just that. 
We didn't find any at the time so we had to do it all ourselves.



________________________________

From: [email protected]<mailto:[email protected]> 
[mailto:[email protected]<mailto:[email protected]>] On 
Behalf Of Haykel BEN JEMIA
Sent: Tuesday, January 20, 2009 3:33 AM
To: [email protected]<mailto:[email protected]>
Subject: Re: [flexcoders] internationalization

Use resource bundles. If you only have 2 or 3 languages and the resources are 
not heavy in size, you can simply compile them in the application, otherwise 
load them at runtime.

Haykel Ben Jemia

Allmas
Web & RIA Development
http://www.allmas-tn.com



On Tue, Jan 20, 2009 at 6:46 AM, Scott 
<[email protected]<mailto:[email protected]>> wrote:

I'm working on a project that requires multiple languages. I'm thinking
I have two choices...

1) Use an XML file to change the text to different languages
2) Create a query/remote object through coldfusion to pull the different
language.

Are those my only options? Or should I say, what is the best way to do
this? Has anyone done this or come across any articles? The articles
I've found thus far deal with changing the currency/calendar/etc..
While that is something that I need to use, it's not the whole story...

Thanks much.
Scott




Reply via email to