如何在 Flex 4 中使用本地化的运行时框架资源?
默认情况下,Flex 使用签名的 .swz 文件来保存 Flex 框架类。我注意到在 Adobe Flash Builder 4 > 下SDK> [版本]>>框架>区域设置> [locale] 支持多种语言。
zh_CN en_GB zh_CN 等等
这些目录中的文件有所不同,因为它们在每个文件的末尾包含一个“_rb.swc”。文件包括 datavisualization_rb.swc、spark_rb.swc、framework_rb.swc 等。这些与框架 .rsls 中存储为 .swz 的 rsls 签名框架资源不同。由于框架的本地化签名版本似乎不可用,我可以使用这些语言环境 > [LOCALE] .swc 版本改为运行时共享资源?
我不想为每个区域设置编译不同版本的应用,而是希望在运行时链接本地化的框架资源库。如果有 sdks 的内容就好了 > [版本]>框架>当我构建应用程序时,将 locale 目录复制到我的 bin-debug/bin-release 文件夹中。
这可能吗?我该如何在 Flash Builder 4 中进行设置?
我的假设(我了解假设)是有一种方法可以设置 Flex 构建路径或提供编译器选项,这会导致存储在 locales > 中的所有区域设置[LOCALE] 文件夹包含到项目的 bin-debug/bin-release 中。
谢谢!
By default, Flex uses signed .swz files to hold the Flex Framework classes. I noticed that under Adobe Flash Builder 4 > sdks > [version] > frameworks > locale > [locale] there are multiple languages supported.
en_US
en_GB
zh_CN
etc etc
The files in these directories vary in that they contain a "_rb.swc" at the end of each file. Files include datavisualization_rb.swc, spark_rb.swc, framework_rb.swc, etc etc. These are different from the rsls signed framework resources stored as .swz in framework .rsls. Since localized signed versions of the framework don't appear to be available, can I use these locale > [LOCALE] .swc versions instead as RUNTIME SHARED RESOURCES?
I DON'T want to compile different versions of my app for each locale, rather want to link the localized framework resource libraries at runtime. It would be nice to have the contents of the sdks > [VERSION] > frameworks > locale directory copied into my bin-debug/bin-release folder when I build my app.
Is this possible? How would I set this up in Flash Builder 4?
My assumption (I know about assumptions) is that there is a way to set up the Flex Build Path or supply compiler options that would cause all of the locales stored in the locales > [LOCALE] folder to be included into the bin-debug/bin-release of the project.
Thanks!
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
您只需要使用 ResourceManager 在运行时执行此操作,这很简单。
You just need to use ResourceManager to do it on runtime, it's easy enough.