Turn: qtopia4 Chinese

Source: Internet
Author: User
Tags i18n

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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.