How CentOS modifies the system language

Source: Internet
Author: User

Use the following command:

Export lang= "en_US. UTF-8 "

environment variables can be modified LANG , it takes effect immediately after the change, and then becomes the original language when the system restarts

Two other ways to modify a language:

1. Configure the following files:

vi/etc/sysconfig/i18n

The original configuration is as follows:

Lang= "ZH_CN. UTF-8 "

Revision changed to

Lang= "en_US. UTF-8 "

It will not take effect immediately after it is saved, but will take effect after reboot.

2. Modify The default locale variable values for the CentOS runtime environment:

Vi/etc/profile

Find Export statement, adding in front of the statement

Lang= "en_US. UTF-8 "

again in Export Append later LANG

Export PATH USER LOGNAME MAIL HOSTNAME histsize INPUTRC LANG

Save Configuration

Reference:

Http://www.360doc.com/content/13/0218/22/6496277_266442030.shtml

?

Post Scripts:

can also be in the file /etc/sysconfig/i18n Delete the original and add the following statement:

Lang= "ZH_CN. GB18030 "

Supported= "Zh_cn,gb18030:zh_cn:zh:en_us. Utf-8:en_us:en "

Sysfont= "Latarcyrheb-sun16"

and then save them, Linux The console can be real Chinese.

/etc/sysconfig/i18n This file is stored in the system's regional Settings

The first line indicates the locale variable setting of your current system

The second line indicates that the system has preset language support and the language does not display correctly in the project

The third line defines the console terminal font, which is the actual font when the text is logged in.

i18n is a Internationalization in the form of abbreviations, meaning I and the N between there - Letters, no wonder the name is so strange that it means the internationalization of the software.

i18n multiple languages are supported, but only in English and one selected language at a time.

Reference:

Http://linux.chinaunix.net/techdoc/system/2009/07/21/1125249.shtml

How CentOS modifies the system language

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.