How to modify default system languages of fedora and redhat

Source: Internet
Author: User
Tags i18n
Fedora and redhat default system language modification method 1. execute the "export: declare-xLANG & quot; en_US & quot;" LANE environment variable in shell, which we want to modify, but where can I modify it? 2. use manbash: Whenbashis fedora and redhat to modify the default system language. 1. execute export :... declare-x LANG = "en_US "... this LANE environment variable is something we want to modify. but where can we modify it? 2. use man bash: When bash is invoked as an interactive login shell, or as a non-interactive shell with the -- login option, it first reads and executes commands from the file/etc/profile, if that file exists. after reading that file, it looks ~ /. Bash_profile ,~ /. Bash_login, and ~ /. Profile, in that order, and reads and executes commands from the first one that exists and is readable. the -- noprofile option may be used when the shell is started to inhibit this behavior. that is, bash reads the configuration files:/etc/profile ~ /. Bash_profile ~ /. Bash_login ~ /. Profile 3. the default shell language should be modified in the system-level file (/etc/profile) so that the modification result can be inherited by every user: open/etc/profile, the LANG variable setting command cannot be found directly on it, but the script also runs other scripts :... for I in/etc/profile. d /*. sh; do if [-r "$ I"]; then. $ I fidone... 4. to/etc/profile. d/directory, view these *. sh script, found a file named "lang. sh "file, it should be: open/etc/profile. d/lang. sh, starting with a few words :... for langfile in/etc/sysconfig/i18n $ HOME /. i18n; do [-f $ langfile] &. $ langfile & sourced = 1done... this/etc/sysconfig/i18n is the place where the default system language is set. for my system, its content is as follows: LANG = "en_US" SUPPORTED = "en_US: en "SYSFONT =" lat0-sun16 "SYSFONTACM =" iso01 "if you want the system's default language to change to UTF-8, you can change LANG to: LANG =" en_US.UTF-8"
Related Article

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.