
The setting file of fontconfig is ~/.nf (user) or /etc/fonts/conf.d (global). (Discuss in Talk:Localization/Simplified Chinese) It may be preferable to link to Font configuration#Fontconfig configuration or Font configuration (简体中文)#Fontconfig配置 instead of explicitly mentioning font configuration paths. Reason: The ~/.nf path appears to be deprecated. Prepend the following two lines to one of the two files (if you are not sure which file to use, prepend to both): It is not recommended to set a global Chinese locale in /etc/nf because it causes tty to display garbled characters.Īs mentioned earlier, Chinese locale can be set separately in ~/.xinitrc or ~/.xprofile. Set Chinese locales for graphical interfaces xprofile: Settings are applied everytime you log in using a display manager such as GDM. xinitrc: Settings are applied everytime you use startx or SLiM to start the X interface. bashrc: Settings are applied everytime you log in using the terminal. You may set your own user environment variables in ~/.bashrc, ~/.xinitrc, or ~/.xprofile. To avoid the tty garbled text issue mentioned above, globally set the LANG locale to en_US.UTF-8 in /etc/nf: Set the global default locale to English (optional) To properly display Chinese characters under tty, install and configure zhcon AUR. Warning: Globally setting Chinese locales in /etc/nf will cause tty to display garbled texts due to the tty glyph limitation of Linux kernel.

You may use locale to view the currently used locale(s), and locale -a to view the currently available locales. You need to modify /etc/locale.gen to set the locales that can be used in the system (erase the comment symbol " #" before the corresponding item):Īfter executing locale-gen, the selected locales can be used in the system. Commonly used Chinese locales are (the most intuitive is the number of words that can be displayed): In Linux, locales are used to set up different environments for running programs.

To properly display Chinese, you must set the locale correctly and install the appropriate Chinese fonts. You can seek help through various platforms: Solving problems is a pleasure in itself. Do not be discouraged when you are in trouble. But in practical applications, you may encounter all kinds of issues.

This article provides Chinese cultural guidance for various common software as much as possible.

In fact, it is even easier than some Chinese versions of Linux. Localization (正體中文)/Traditional Chinese (正體中文)Īccording to " The Arch Way": We cannot configure everything for you, because "Preferences and needs are different for everyone", but we will try to ensure the configuration to be convenient and simple.
