首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > 媒体动画 > flex >

Flex生成SDK上Local目录上的语言包

2012-11-23 
Flex生成SDK下Local目录下的语言包from http://sensaran.wordpress.com/2010/04/28/原文mxmlc -localezh_

Flex生成SDK下Local目录下的语言包
from http://sensaran.wordpress.com/2010/04/28/
原文
mxmlc -locale=zh_CN -source-path={locale} -include-resource-bundles=mainBundle,collections,containers,controls,core,effects,skins,styles -output=src/Resources_zh_CN.swfcompc -locale=zh_CN -source-path=frameworks/projects/framework/bundles/zh_CN/src -include-resource-bundles=collections,containers,controls,core,effects,formatters,logging,SharedResources,skins,states,styles,utils,validators -output=frameworks/locale/zh_CN/framework_rb.swcPart 1 : SDKCreate folder1. D:\Program Files\Adobe\Flex Builder 3\sdks\3.2.0\frameworks\projects\framework\bundles\fr_FR2. D:\Program Files\Adobe\Flex Builder 3\sdks\3.2.0\frameworks\projects\framework\bundles\fr_FR\src

Download and paste3. http://opensource.adobe.com/svn/opensource/flex/sdk/trunk/frameworks/projects/framework/bundles/fr_FR inside step 2

Create folder4. D:\Program Files\Adobe\Flex Builder 3\sdks\3.2.0\frameworks\locale \fr_FR

Execute5. D:\Program Files\Adobe\Flex Builder 3\sdks\3.2.0bin\compc -locale=fr_FR -source-path+=frameworks/projects/framework/bundles/fr_FR/src -include-resource-bundles=collections,containers,controls,core,effects,formatters,logging,SharedResources,skins,states,styles,utils,validators -output=frameworks/locale/fr_FR/framework_rb.swc


bin\compc -locale=zh_CN -source-path+=frameworks/projects/framework/bundles/zh_CN/src -include-resource-bundles=collections,containers,controls,core,effects,formatters,logging,SharedResources,skins,states,styles,utils,validators -output=frameworks/locale/zh_CN/framework_rb.swc

bin\compc -locale=zh_CN -source-path+=frameworks/projects/framework/bundles/zh_CN/src -include-resource-bundles=collections,FlexPaper,containers,controls,core,effects,formatters,logging,SharedResources,skins,states,styles,utils,validators -output=frameworks/locale/zh_CN/framework_rb.swc


注:会出现 containers找不到,新建一个containers.properties(在目录D:\Program Files\Adobe\Flex Builder 3\sdks\3.2.0\frameworks\projects\framework\bundles\zh_CN\src 下)
Part 2 : Project

1.
Set System PATH
D:\Program Files\Adobe\Flex Builder 3\sdks\3.2.0\bin
2.
create required properties file mainBundle.properties
3.
keep that file inside a folder with your locale name ‘fr_FR
4.
execute from root path
mxmlc -locale=fr_FR -source-path={locale} -include-resource-bundles=mainBundle,collections,containers,controls,core,effects,skins,styles -output=src/Resources_fr_FR.swf

mxmlc -locale=en_US -source-path={locale} -include-resource-bundles=mainBundle,collections,containers,controls,core,effects,skins,styles -output=src/Resources_en_US.swf


mxmlc -locale=zh_CN -source-path={locale} -include-resource-bundles=FlexPaper,collections,containers,controls,core,effects,skins,styles -output=src/Resources_zh_CN.swf



热点排行