symbian_s60_9.2_localization

symbian s60 系列 9.2 platform无需单独做本地化,直接abld build 生成。

资源文件统一编译生成在/epoc32/data/z/resource/目录下,

编译的可执行二进制文件放在相应平台的release/***/urel或者udeb目录下

多语言支持的本地化文件统一生成系统统一放在%epocroot%/data/z/resource/目录下可供emulator or armv*使用。

 

关于资源文件配置在bld.inf中:

PRJ_EXPORTS

//.iby files is used for create image, we should put the .iby to system relative root
../rom/gspreferrednetworkplugin.iby          /epoc32/rom/include/customer/app/gspreferrednetworkplugin.iby
../rom/
gspreferrednetworkpluginresources.iby  /epoc32/rom/include/customer/app/gspreferrednetworkpluginresources.iby
../rom/gspreferrednetworkpluginloc.iby          /epoc32/rom/include/customer/app/gspreferrednetworkpluginloc.iby

//*.loc *_01.loc *_31.loc *_159.loc is copied to  APP_LAYER_LOC_EXPORT_PATH ( macor defines %epocroot%/epoc32/include/platform/app/loc)

../loc/gspreferrednetworkplugin.loc            APP_LAYER_LOC_EXPORT_PATH( ../gspreferrednetworkplugin.loc )


../loc/sc/gspreferrednetworkplugin.loc         APP_LAYER_LOC_EXPORT_PATH( gspreferrednetworkplugin.loc )

 
../loc/01/gspreferrednetworkplugin_01.loc      APP_LAYER_LOC_EXPORT_PATH( ../01/gspreferrednetworkplugin_01.loc ) //same as above

../loc/159/gspreferrednetworkplugin_159.loc    APP_LAYER_LOC_EXPORT_PATH( ../159/gspreferrednetworkplugin_159.loc ) //same as above

 


../loc/31/gspreferrednetworkplugin_31.loc      APP_LAYER_LOC_EXPORT_PATH( ../31/gspreferrednetworkplugin_31.loc ) //定义中文字符串

 

 

 

资源文件的配置在:*.mmp 中资源编写节选:

#include <data_caging_paths.hrh>    //this is needed for RESOURCE_FILES_DIR
#include <platform_paths.hrh>

SOURCEPATH      ../data

//ECOM resource definition
START RESOURCE      2002B33E.rss   //this is search in ../data
TARGET              gspreferrednetworkplugin.rsc //生成目标文件名
TARGETPATH          ECOM_RESOURCE_DIR   // macro  define %epocroot%/epoc32/data/z/resource/plugins/
END                 //  ECOM resource definition


START RESOURCE      gspreferrednetworkpluginrsc.rss  //this is search in ../data
HEADER
TARGETPATH          RESOURCE_FILES_DIR  // macro define %epocroot%/epoc32/data/z/resource/
LANG sc 01 31 159  //this means the target files include four files named of

                           //gspreferrednetworkpluginrsc.r01       gspreferrednetworkpluginrsc.r31

                           //gspreferrednetworkpluginrsc.r159     gspreferrednetworkpluginrsc.rsc
END //resources

 

注意生成资源文件的名字:

chitian.loc(宏定义文件)

/sc/chitian.loc (默认语言英文资源文件)

/01/chitian_01.loc --->>> chitianrsc.r01

/159/chitian_159.loc--->>> chitianrsc.r159

/31/chitian_31.loc --->>> chitianrsc.r31

 

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值