A basic approach to configuring a multilingual environment for Linux systems

Source: Internet
Author: User
Tags i18n locale

Modify the/etc/sysconfig/i18n file, such as
Lang= "en_US. UTF-8 ", Xwindow will display the English interface,
Lang= "ZH_CN. GB18030 ", Xwindow will display the Chinese interface.
There is also a way to cp/etc/sysconfig/i18n $HOME/.i18n modify $HOME/.i18n files, such as
Lang= "en_US. UTF-8 ", Xwindow will display the English interface,
Lang= "ZH_CN. GB18030 ", Xwindow will display the Chinese interface.
This will change the personal interface language without affecting other users.

The modified/etc/sysconfig/i18n file is:

The code is as follows:

Lang= "en_US. UTF-8 "
Supported= "ZH_CN. GB18030:zh_CN:zh:en_US. Utf-8:en_us:en "
Sysfont= "Latarcyrheb-sun16"
Lc_all= "en_US. UTF-8 "
Export Lc_all

Reboot after Setup or use rc.local to make it effective
or modify the. bash_profile file of the logged-on user

The code is as follows:

Export LANG=ZH_CN. GB18030
Export LANGUAGE=ZH_CN.GB18030:ZH_CN.GB2312:ZH_CN

Ubuntu
For example, the Ubuntu system language environment changed to English en_US. UTF-8:
View the current system locale, edit the configuration file, and Zh_us. UTF-8 changed to en_US. Utf-8,zh changed en

The code is as follows:

sudo nano/etc/default/locale
Lang= "en_US. UTF-8 "
Language= "En_us:en"

Centos:
Method One, the use of optical discs or the equivalent of optical media

The code is as follows:

# Mount/dev/cdrom/mnt/cdrom
# Cd/mnt/cdrom
# RPM-IVH Fonts-chinese


Method Two,

The code is as follows:

# yum Install Fonts-chinese

After installation, set the language of the system, using the desktop or character mode can be modified to include the following content can be:

The code is as follows:

vim/etc/sysconfig/i18n

The code is as follows:

Lang= "ZH_CN. GB2312 "
Language= "Zh_CN.GB18030:zh_CN.GB2312:zh_CN"
Supported= "ZH_CN. Gb18030:zh_cn. Gb2312:zh_cn. Utf-8:zh:en_us. Utf-8:en_us:en:ja_jp. Utf-8:ja_jp:ja "
Sysfont= "Lat0-sun16"
Sysfontacm= "8859-15"

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.