×
Namespaces

Variants
Actions

多语言手机预装

From Nokia Developer Wiki
Jump to: navigation, search
Article Metadata

代码示例
文章
shenjianguo 在 25 May 2010 创建
最后由 hamishwillee 在 30 May 2013 编辑

这里假设大家对多语言和预装都熟悉了,我只说下在多语言情况下预装包需要注意的地方,我们处理两种语言:英文和中文,更多的语言情况类似。

1. 在MMP文件中加入多语言支持 LANG 01 31,01代表英文,31是中文

2. 把资源文件改成多语言版本

  修改.rls 文件,将其内容改成 
  CHARACTER_SET UTF8
  #ifdef LANGUAGE_01
  #include "Preinstall.l01"
  #endif
 
  #ifdef  LANGUAGE_31
  #include "Preinstall.l31"
  #endif
  其原来的内容复制到 .l01文件中,并把相应的字符串内容翻译成中文存到 .l31文件

3. 修改PKG文件,请注意资源文件和注册文件

   ;Language - standard language definitions
   &EN,ZH
   ; standard SIS file header
   #{"Preinstall", "Preinstall"},(0x200311BE),1,0,0, TYPE=PA
   ;Localised Vendor name
   %{"Vendor-EN", "Vendor-ZH"}
   ;Supports Series 60 v 3.0
   [0x101F7961], 0, 0, 0, {"Series60ProductID", "Series60ProductID"}


   ;"$(EPOCROOT)Epoc32\data\z\resource\apps\Preinstall.rsc"		-"!:\resource\apps\Preinstall.rsc"
   "$(EPOCROOT)Epoc32\data\z\resource\apps\Preinstall.r01"		-"!:\resource\apps\Preinstall.r01"
   "$(EPOCROOT)Epoc32\data\z\resource\apps\Preinstall.r31"		-"!:\resource\apps\Preinstall.r31"
   ;"$(EPOCROOT)Epoc32\data\z\private\10003a3f\apps\Preinstall_reg.rsc"	-    "!:\private\10003a3f\import\apps\Preinstall_reg.rsc"
   "$(EPOCROOT)Epoc32\data\z\private\10003a3f\apps\Preinstall_reg.r01"	-    "!:\private\10003a3f\import\apps\Preinstall_reg.r01"
   "$(EPOCROOT)Epoc32\data\z\private\10003a3f\apps\Preinstall_reg.r31"	-    "!:\private\10003a3f\import\apps\Preinstall_reg.r31"

4. 拷贝相应的文件到指定目录下

    \sys\bin\Preinstall.exe
   \resource\apps\Preinstall.r01
   \resource\apps\Preinstall.r31
   \private\10003a3f\import\apps\Preinstall_reg.r01
   \private\10003a3f\import\apps\Preinstall_reg.r31
   \private\10202dce\Preinstall.sis   <- 签名的sis文件


代码:File:Preinstall.zip

This page was last modified on 30 May 2013, at 07:41.
59 page views in the last 30 days.

Was this page helpful?

Your feedback about this content is important. Let us know what you think.

 

Thank you!

We appreciate your feedback.

×