Ubuntu modified system language can be used in English to support Chinese

Source: Internet
Author: User
Tags locale

Simply put, modify the /etc/default/locale file, set the language bit UTF-8, if not the language, the execution of the command locale-gen en_US.UTF-8 to install, without immediate effect, restart.

View current system language
locale
Modify the system language

For example, modify the language to English

vi /etc/default/localeLANG="en_US.UTF-8"LANGUAGE="en_US:en"

Check the system language again after rebooting

Localelocale:cannotSet LC_CTYPE to default locale:no such file or Directorylocale:cannot  set Lc_messages to default locale:no such file or Directorylocale:cannot set Lc_all to default locale:no such F Ile or Directorylang=en_us. utf-8language=en_us:enlc_ctype="en_US. UTF-8 "lc_numeric=" en_US. UTF-8 "Lc_time=" en_US. UTF-8 "lc_collate=" en_US. UTF-8 "lc_monetary=" en_US. UTF-8 "lc_messages=" en_US. UTF-8 "lc_paper=" en_US. UTF-8 "Lc_name=" en_US. UTF-8 "lc_address=" en_US. UTF-8 "Lc_telephone=" en_US. UTF-8 "lc_measurement=" en_US. UTF-8 "lc_identification=" en_US. UTF-8 "lc_all=              

View the locale installed within the system

-a locale: Cannot set LC_CTYPE to default locale: No such file or directorylocale: Cannot set LC_MESSAGES to default locale: No such file or directorylocale: Cannot set LC_COLLATE to default locale: No such file or directoryCPOSIXzh_CN.utf8zh_SG.utf8

I didn't pretend to be en_us. UTF-8

locale-gen en_US.UTF-8

Check Again

LANG=en_US.UTF-8LANGUAGE=en_US:enLC_CTYPE="en_US.UTF-8"LC_NUMERIC="en_US.UTF-8"LC_TIME="en_US.UTF-8"LC_COLLATE="en_US.UTF-8"LC_MONETARY="en_US.UTF-8"LC_MESSAGES="en_US.UTF-8"LC_PAPER="en_US.UTF-8"LC_NAME="en_US.UTF-8"LC_ADDRESS="en_US.UTF-8"LC_TELEPHONE="en_US.UTF-8"LC_MEASUREMENT="en_US.UTF-8"LC_IDENTIFICATION="en_US.UTF-8"LC_ALL=

Ubuntu modified system language can be used in English to support Chinese

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.