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

From ArchWiki
Jump to: navigation, search
(init version, untranslated as I am going to bed :3)
 
m (Add page link.)
(3 intermediate revisions by 3 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}}
  
{{Filename|/etc/locale.conf}} is the system configuration file for locale settings. Its {{Codeline|LANG}} variable takes precedence over the {{Codeline|LOCALE}} variable from {{Filename|[[rc.conf|/etc/rc.conf]]}}. If {{Codeline|DAEMON_LOCALE}} is set in {{Filename|rc.conf}}, then the settings in {{Filename|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==
+
==概览==
  
{{Filename|/etc/locale.conf}} contains a new-line separated list of environment variable assignments. It supports {{Codeline|LANG}} as well as all the {{Codeline|LC_*}} variables, with the exception of {{Codeline|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
+
示例文件:
  
{{File
+
{{hc|/etc/locale.conf
|name=/etc/locale.conf
+
|2=<nowiki>LANG=zh_CN.UTF-8
|content=<nowiki>LANG=zh_CN.UTF-8
+
 
LC_MESSAGES=C
 
LC_MESSAGES=C
 
</nowiki>}}
 
</nowiki>}}

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