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

From ArchWiki
Jump to: navigation, search
(init version, untranslated as I am going to bed :3)
 
(update templates, see Help:Style)
Line 9: Line 9:
 
{{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}} 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.
  
 
==Overview==
 
==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}} 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].
  
 
The following is a sample file
 
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 12:26, 5 January 2012

This template has only maintenance purposes. For linking to local translations please use interlanguage links, see Help:i18n#Interlanguage links.


Local languages: Català – Dansk – English – Español – Esperanto – Hrvatski – Indonesia – Italiano – Lietuviškai – Magyar – Nederlands – Norsk Bokmål – Polski – Português – Slovenský – Česky – Ελληνικά – Български – Русский – Српски – Українська – עברית – العربية – ไทย – 日本語 – 正體中文 – 简体中文 – 한국어


External languages (all articles in these languages should be moved to the external wiki): Deutsch – Français – Română – Suomi – Svenska – Tiếng Việt – Türkçe – فارسی

Template:Article summary start Template:Article summary text Template:Article summary heading Template:Article summary wiki Template:Article summary end

/etc/locale.conf is the system configuration file for locale settings. Its LANG variable takes precedence over the LOCALE variable from /etc/rc.conf. If DAEMON_LOCALE is set in rc.conf, then the settings in locale.conf applies to daemons as well as login shells, otherwise it only applies to login shells.

Overview

/etc/locale.conf contains a new-line separated list of environment variable assignments. It supports LANG as well as all the LC_* variables, with the exception of LC_ALL. The format is shared with systemd [1].

The following is a sample file

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