问题
I'm working with a flash application (non-flex), and I'd like to support internationalization. In flex there's a nice abstraction ResourceManager in which you provide resource bundles for each locale. Is there any equivalent for actionscript?
回答1:
How about the Globalization package from AS Foundry?
回答2:
Haven't used it myself, but this one looks interesting:
http://www.sephiroth.it/weblog/archives/2005/12/actionscript_30_first_attempt.php
It's based on the GNU gettext implementation and tool chain.
回答3:
We created a nice little tool around gettext:
http://code.google.com/p/asgettext/
With this tool you can easily create multilingual application using a default internationalization tool.
回答4:
As a side note to the suggested packages above, you may want to create and store all of your language content in database and then generate the resource bundle files. This way you can have a central interface to manage it all but still enjoy the performance of resource bundles..
good luck!
来源:https://stackoverflow.com/questions/655845/internationalization-for-flash-applications