Flex 中的阿拉伯语语言环境支持 [英] Arabic Locale Support in Flex
问题描述
今天,我学习了如何本地化我的 Flex 应用程序并支持多种语言.网上的教程很棒.但是,他们都没有提到阿拉伯语语言环境.
Today, I learn how to localize my Flex application and to support multiple languages. The tutorials on-line are great. However, non of them mention the Arabic locale.
所以基本上,我使用以下方法在 SDK 文件夹中创建了阿拉伯语(约旦)语言环境文件:
So basically, I created the Arabic (Jordan) locale files in the SDK folder by using:
copylocale en_US ar_JO
我导航到 locale 文件夹,我能够在那里看到 ar_JO
文件夹......所以我假设一切都很顺利.
I navigated to the locale folder and I was able to see the ar_JO
folder in there... So I assume everything went smooth.
接下来,我按照教程(www.babelfx.org)进行了本地化测试应用程序英语、法语和阿拉伯语.单击这些语言中的任何一种都会将我的简单表单的标签/转换为所需的语言...但是:
Next, I followed the tutorials (www.babelfx.org) and was able to localize my test application in English, French, and Arabic. Clicking on any of those languages switches the labels of my simple form/into the desired language... however:
- 切换到阿拉伯语时,标签会变成空的方形符号.如果您想知道,是的,我可以打开记事本并输入阿拉伯语文本并成功保存.
- 当我在文本框中输入阿拉伯语文本时,我可以看到我输入正确的阿拉伯语单词(标签仍然是方形符号).
有什么想法我可能会在这里遗漏吗??
Any ideas what I might be missing here??
我尝试将我的应用程序的字体(就在我设置了 fontFamily
的应用程序标签上)更改为 Windows 上默认提供的 Simplified Arabian
.
I tried changing the font of my application (right on the application tag I set the fontFamily
) into Simplified Arabic
which comes by default on Windows.
谢谢
推荐答案
我找到了解决方案.实际上,我不需要嵌入任何字体或任何东西来让它工作.
I found the solution. Actually, I didn't have to embed any fonts or anything in order to get it working.
我的问题是 resources.properties
文件中的编码.我在 Notepad++ 中打开它,然后我注意到了 Encoding
菜单.当时,我记得读过一些关于资源文件的编码应该是UTF-8
的内容.所以我从菜单中将编码转换为UTF-8
,编译,没用!经过几次重试和清理项目,它成功运行!!!
My problem was the encoding in the resources.properties
file. I opened it in Notepad++, then I noticed the Encoding
menu. At that time, I remembered reading something about that the encoding of the resources files should be UTF-8
. So I converted the encoding to UTF-8
from the menu, compiled, it didn't work! After couple of retries and cleaning the project, it worked successfully!!!
提醒大家(因为我在解决这个问题时陷入了这个困境):对于 mx
组件,嵌入字体必须将 embedAsCFF
设置为 false
.
Just a reminder for everybody (as I have fallen into this while working this problem out):
For mx
components, embedded fonts must have the embedAsCFF
set to false
.
这篇关于Flex 中的阿拉伯语语言环境支持的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!