Difference between revisions of "Locale.conf (简体中文)"

From ArchWiki
Jump to: navigation, search
(update templates, see Help:Style)
m (Add page link.)
(2 intermediate revisions by 2 users not shown)
Line 1: Line 1:
 
[[Category: About Arch (简体中文)]]
 
[[Category: About Arch (简体中文)]]
 
[[Category: Boot process (简体中文)]]
 
[[Category: Boot process (简体中文)]]
{{i18n|locale.conf}}
+
[[en:Locale.conf]]
 +
[[es:Locale.conf]]
 
{{Lowercase title}}
 
{{Lowercase title}}
 
{{Article summary start}}
 
{{Article summary start}}
Line 7: Line 8:
 
{{Article summary heading|相关内容}}
 
{{Article summary heading|相关内容}}
 
{{Article summary wiki|Arch Boot Process (简体中文)}}
 
{{Article summary wiki|Arch Boot Process (简体中文)}}
 +
{{Article summary wiki|Locale}}
 
{{Article summary end}}
 
{{Article summary end}}
  
{{ic|/etc/locale.conf}} is the system configuration file for locale settings. Its {{ic|LANG}} variable takes precedence over the {{ic|LOCALE}} variable from {{ic|[[rc.conf|/etc/rc.conf]]}}. If {{ic|DAEMON_LOCALE}} is set in {{ic|rc.conf}}, then the settings in {{ic|locale.conf}} applies to daemons as well as login shells, otherwise it only applies to login shells.
+
{{ic|/etc/locale.conf}} 是设置 locale 的系统配置文件。其中的 {{ic|LANG}} 变量比 {{ic|[[rc.conf|/etc/rc.conf]]}} {{ic|LOCALE}} 变量的优先级高。如果 {{ic|rc.conf}} 中设置了 {{ic|DAEMON_LOCALE}},那么守护进程也会使用 {{ic|locale.conf}} 中的 locale 设置。
  
==Overview==
+
==概览==
  
{{ic|/etc/locale.conf}} contains a new-line separated list of environment variable assignments. It supports {{ic|LANG}} as well as all the {{ic|LC_*}} variables, with the exception of {{ic|LC_ALL}}. The format is shared with systemd [http://0pointer.de/public/systemd-man/locale.conf.html].
+
{{ic|/etc/locale.conf}} 包含了以空行分隔的变量列表,支持 {{ic|LANG}} 和所有 {{ic|LC_*}} 变量,但不包含 {{ic|LC_ALL}}。格式与 systemd 一致。 [http://0pointer.de/public/systemd-man/locale.conf.html].
  
The following is a sample file
+
示例文件:
  
 
{{hc|/etc/locale.conf
 
{{hc|/etc/locale.conf

Revision as of 02:46, 28 August 2012

Summary help replacing me
有关locale配置文件的介绍。
相关内容
Arch Boot Process (简体中文)
Locale

/etc/locale.conf 是设置 locale 的系统配置文件。其中的 LANG 变量比 /etc/rc.confLOCALE 变量的优先级高。如果 rc.conf 中设置了 DAEMON_LOCALE,那么守护进程也会使用 locale.conf 中的 locale 设置。

概览

/etc/locale.conf 包含了以空行分隔的变量列表,支持 LANG 和所有 LC_* 变量,但不包含 LC_ALL。格式与 systemd 一致。 [1].

示例文件:

/etc/locale.conf
LANG=zh_CN.UTF-8
LC_MESSAGES=C