Flex3 Localization

1. cd %FLEX3_SDK%\bin, run: copylocale en_US zh_CN
2. mkdir locale\zh_CN at the root of project folder
3. create new file "resources.propertes" in the above directory
4. edit it for each line as CAMPUS_ROAMER=校园漫步
5. use resources for source files
   -mxml: <mx:Label text="@Resource(bundle='resources', key='CAMPUS_ROAMER')"
   -as: var menuLabel:String = ResourceManager.getInstance().getString('resources', 'GOTO_PROFILE_PAGE');

6. add complie option: -locale zh_CN -source-path ../locale/{locale}
7. That's OK, just compile then run!

你可能感兴趣的:(Flex)