刚刚接触qtopia,在中文化上遇到了一点麻烦,显示不了汉字,只能现实小方框,恳请各位大侠帮帮我:
我的qtopia的版本是2.2.0
以下是我中文化的过程:
首先:
export QPEDIR=/usr/local/qtopia-free-2.2.0/qtopia
export QTDIR=/usr/local/qtopia-free-2.2.0/qt2
export DQTDIR=/usr/local/qtopia-free-2.2.0/dqt
然后按照文档上说的:
./configure -languages "zh_CN"
make lupdate
cd bin
./nct_lupdate
在/qtopia-free-2.2.0/qtopia/i18n/zh_CN增加Chinese.directory文件
[Translation]
File=QtopiaI18N
Context=Chinese
[Desktop Entry]
Name[]=Chinese
再make lupdate
用linguist工具翻译所有/qtopia-free-2.2.0/qtopia/i18n/zh_CN下的.ts文件
修改qtopia-free-2.2.0/qtopia/i18n/zh_CN/QtopiaDefault.ts 中的<name>FontMap</name> 这段代码变成:
<name>FontMap</name>
<message encoding="UTF-8">
<source>Small,helvetica,10</source>
<translation>Petit,unifont,11</translation>
</message>
这一步不知道是不是这样修改?
用lrelease将.ts生成.qm文件
将qtopia-free-2.2.0/qtopia/i18n目录拷贝到qtopia-free-2.2.0/qtopia/image/opt/Qtopia下
修改qtopia-free-2.2.0/qtopia/image/opt/demohome/settings/local.conf中的en_US改成zh_CN
make install
一切结束之后运行qtopia结果只显示小方框,各位大侠看看中文化过程是不是这样?
是不是还得设置unifont,如果要设置该怎么设置?我是一个菜鸟,刚刚接触qtopia,请各位大侠说明一下详细的过程。