引用 | 编辑
笑笑
2009-04-23 17:02 |
楼主
|
||
x0
本文编译自Nokia论坛,并在S60 SDK 5th 0.9 上验证成功。故将其翻译成中文和大家分享。语言的编号定义在e32const.h头文件中,比如中国的编号是31。首先需要在mmp中定义你组件中的语言: // file: MyApp.mmp ... LANG 01 02 16 // UK English, French, Russian 把字符串内容放在不同的语言文本文件之中,注意,如果你要支持非ASCII码的语言,比如中文。需要在文件头部写明。如下所示: // file: MyApp.l01 (ELangEnglish = 01) #define message_wait "Please wait..."// file: MyApp.l02 (ELangFrench = 02) // the file has to be encoded in UTF-8 for the strings to be rendered correctly: CHARACTER_SET UTF8 #define message_wait "Attendez, s'il-vous plait..."// file: MyApp.l16 (ELangRussian = 16) // the file has to be encoded in UTF-8 for the strin .. 访客只能看到部份内容,免费 加入会员 x0
|