汉化你的blackberry模拟器

转载来自: http://mdev.cc SinFrancis

 

BB的模拟器自带的有中文,不过一般情况下是看不到的,即使在设置里面也找不到中文的选项,那么我们应该怎么样汉化呢?

 

其实很简单,比如说我想汉化blackberry 8300的模拟器,那么找到我们的JDE安装目录,

比如D:\Program Files\Research In Motion\BlackBerry JDE 4.5.0\simulator这个目录,找到8300.xml文件,

一般BB的型号都对应有.xml文件,打开8300.xml文件,在其中加入以下几句话:

 

 

<Application>net.rim.blackberry.lang.zh_CN_Pinyin</Application>
<Application>net.rim.blackberry.lang.zh_CN.renderingSupport</Application>

 

 

 

来个全部的配置 :

 

<SimulatorConfiguration version="1.0" hardwareid="0x96000F03" flashSize="32768" platformVersion="1.8.0.0" vendorID="0">
   <ALXSources>.</ALXSources>
   <Application>net.rim.java.tasks</Application>
   <Application>net.rim.java.memopad</Application>
   <Application>net.rim.medialoader.video</Application>
   <Application>net.rim.java.docViewer</Application>
   <Application>net.rim.java.passwordkeeper</Application>
   <Application>net.rim.blackberry.lang.en_GB</Application>
<Application>net.rim.blackberry.lang.zh_CN_Pinyin</Application>
<Application>net.rim.blackberry.lang.zh_CN.renderingSupport</Application>
   <Application>net.rim.blackberry.spellcheck</Application>
   <Application>net.rim.platform.ecmascript</Application>
   <Application>com.dataviz.dxtg</Application>
   <Application>net.rim.java.phone</Application>
   <Application>net.rim.java.browser</Application>
   <Application>net.rim.java.browser.javascript</Application>
   <ApplicationExclude>net.rim.BBXpEnabler</ApplicationExclude>
   <ApplicationExclude>net.rim.java.batterylog</ApplicationExclude>
   <ApplicationExclude>net.rim.java.quincy</ApplicationExclude>
   <ApplicationExclude>net.rim.java.linktrack</ApplicationExclude>
   <Application>net.rim.java.help</Application>
   <Application>net.rim.java.maps</Application>
   <Application>net.rim.java.blackberrymessenger</Application>
   <Application>net.rim.sdk.simulator</Application>
</SimulatorConfiguration>

 

 

运行8300.bat 也就是启动8300的模拟器,

然后找到options/Language 如果找不到这个菜单 那就找到options/Localization,在里面选择"简体中文"即可.

 

另外在有的情况下会出现中英文切换BB系统抛出异常的情况,没有关系,重新启动模拟器即可。

 

我再4.5 、4.6平台测试均可汉化,4.7未成功。

 

你可能感兴趣的:(JavaScript,java,.net,xml,BlackBerry)