Reference
Qtopia package documentation DOC/html/syscust-internat.html
Http://blog.chinaunix.net/u3/105675/showart_2106444.html
The releasenotes in qtopia 4.3.0 supports Chinese and provides a simple Chinese input method.
To enable qtopia to display Chinese characters, you only need to correct the encoding and font files, which is almost the same.
1. Create a dictionary configuration file
Go to the qtopia decompression directory
CD i18n/(this directory should have an en_us)
Mkdir zh_cn
Create a ". directory" file with the following content:
[Translation]
File = qtopiai18n
Context = Simplified Chinese
[Desktop entry]
Name [] = Simplified Chinese
2. Rebuild makefile
Add the option-Ages "zh_cn" to configure"
Then make lupdate
3. Execute the nct_lupdate command to process strings in non-code files, such as config and desktop files.
4. Modify the font of Chinese Characters
Modify <Name> fontmap </Name> In qtopia/i18n/zh_cn/qtopiadefault. Ts
<Name> fontmap </Name>
<Message encoding = "UTF-8">
<Source> small, Helvetica, 10 </source>
<Translation> Petit, uniont, 11 </translation>
</Message>
Add a context tag without fontmap.
5. Various ts files in Chinese
For example, edit qtopiasettings. Ts, write "display" to the translation field of appearance, and then modify the translation status of the entry.
6. Install
Make install or use lrelease to publish QM to the board.
7. Modify the interface language
Enter the QT interface, enter settings, and set the language to simplified Chinese.
Fix Linux Chinese garbled characters
Method 1: Modify the/root/. bash_profile file and add export lang = zh_cn.gb18030
For other users, the file must be modified accordingly.
When using this method, Putty can display Chinese characters, but the desktop system is in English, and the Chinese characters on all webpages are still garbled.
Method 2:
Reference:
Modify the/etc/sysconfig/i18n File
# Lang = "en_US.UTF-8"
# Supported = "en_US.UTF-8: en_us: en"
# SYSFONT = "latarcyrheb-sun16"
Change
LANG = "zh_CN.GB18030"
LANGUAGE = "zh_CN.GB18030: zh_CN.GB2312: zh_CN"
SUPPORTED = "zh_CN.GB18030: zh_CN: zh"
SYSFONT = "lat0-sun16"
SYSFONTACM = "8859-15"
From: http://hi.baidu.com/andy1983211/blog/item/b3b8213b3dbbac28b9998f2f.html
From: http://bbs.51cto.com/thread-639468-1.html