Take a look at ResourceManager, and the resource module examples in the
Developer Guide. We use this method, and it's been working pretty
smoothly. We compile with locale="" (the empty string), so that
resources are *always* loaded at runtime (we found that this simplified
things a little). You can pre-load a specific resource module (based on
flashvars, I believe), so it's available at startup, but we just have a
non-localized login screen where the user picks a locale.
-- 
Maciek Sakrejda
Truviso, Inc.
http://www.truviso.com

-----Original Message-----
From: Sceneshift <j...@sceneshift.com>
Reply-To: flexcoders@yahoogroups.com
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Application language files
Date: Mon, 19 Jan 2009 14:23:38 -0800 (PST)


Hi guys,

I want to store all my messages in a language class, common things like
login fail messages etc, so I can easily change them later or perhaps
add
another language. I was talking with a friend about how best to do this,
and
we couldn't decide. At first we thought of making a LanguageManager
singleton class with each translation as a const, but then we'd be
bloating
the application with unwanted languages. Maybe we could import a SWC at
runtime with the correct language class?

Can anyone suggest the best solution for working with languages?
-- 
View this message in context:
http://www.nabble.com/Application-language-files-tp21552940p21552940.html
Sent from the FlexCoders mailing list archive at Nabble.com.




 


Reply via email to