现在的位置: 首页 > 综合 > 正文

symbian_s60_9.2_localization

2013年10月22日 ⁄ 综合 ⁄ 共 4170字 ⁄ 字号 评论关闭

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

 

抱歉!评论已关闭.