chiark / gitweb /
service: document new Type=idle
[elogind.git] / man / locale.conf.xml
1 <?xml version='1.0'?> <!--*-nxml-*-->
2 <?xml-stylesheet type="text/xsl" href="http://docbook.sourceforge.net/release/xsl/current/xhtml/docbook.xsl"?>
3 <!DOCTYPE refentry PUBLIC "-//OASIS//DTD DocBook XML V4.2//EN"
4         "http://www.oasis-open.org/docbook/xml/4.2/docbookx.dtd">
5
6 <!--
7   This file is part of systemd.
8
9   Copyright 2010 Lennart Poettering
10
11   systemd is free software; you can redistribute it and/or modify it
12   under the terms of the GNU Lesser General Public License as published by
13   the Free Software Foundation; either version 2.1 of the License, or
14   (at your option) any later version.
15
16   systemd is distributed in the hope that it will be useful, but
17   WITHOUT ANY WARRANTY; without even the implied warranty of
18   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
19   Lesser General Public License for more details.
20
21   You should have received a copy of the GNU Lesser General Public License
22   along with systemd; If not, see <http://www.gnu.org/licenses/>.
23 -->
24
25 <refentry id="locale.conf">
26         <refentryinfo>
27                 <title>locale.conf</title>
28                 <productname>systemd</productname>
29
30                 <authorgroup>
31                         <author>
32                                 <contrib>Developer</contrib>
33                                 <firstname>Lennart</firstname>
34                                 <surname>Poettering</surname>
35                                 <email>lennart@poettering.net</email>
36                         </author>
37                 </authorgroup>
38         </refentryinfo>
39
40         <refmeta>
41                 <refentrytitle>locale.conf</refentrytitle>
42                 <manvolnum>5</manvolnum>
43         </refmeta>
44
45         <refnamediv>
46                 <refname>locale.conf</refname>
47                 <refpurpose>configuration file for locale settings</refpurpose>
48         </refnamediv>
49
50         <refsynopsisdiv>
51                 <para><filename>/etc/locale.conf</filename></para>
52         </refsynopsisdiv>
53
54         <refsect1>
55                 <title>Description</title>
56
57                 <para>The <filename>/etc/locale.conf</filename> file
58                 configures system-wide locale settings.</para>
59
60                 <para>The basic file format of
61                 <filename>locale.conf</filename> is a
62                 newline-separated list of environment-like
63                 shell-compatible variable assignments. It is possible
64                 to source the configuration from shell scripts,
65                 however, beyond mere variable assignments no shell
66                 features are supported, allowing applications to read
67                 the file without implementing a shell compatible
68                 execution engine.</para>
69
70                 <para>Note that the kernel command line options
71                 <varname>locale.LANG=</varname>,
72                 <varname>locale.LANGUAGE=</varname>,
73                 <varname>locale.LC_CTYPE=</varname>,
74                 <varname>locale.LC_NUMERIC=</varname>,
75                 <varname>locale.LC_TIME=</varname>,
76                 <varname>locale.LC_COLLATE=</varname>,
77                 <varname>locale.LC_MONETARY=</varname>,
78                 <varname>locale.LC_MESSAGES=</varname>,
79                 <varname>locale.LC_PAPER=</varname>,
80                 <varname>locale.LC_NAME=</varname>,
81                 <varname>locale.LC_ADDRESS=</varname>,
82                 <varname>locale.LC_TELEPHONE=</varname>,
83                 <varname>locale.LC_MEASUREMENT=</varname>,
84                 <varname>locale.LC_IDENTIFICATION=</varname> may be
85                 used to override the locale settings at boot.</para>
86
87                 <para>The locale settings configured in
88                 <filename>/etc/locale.conf</filename> are system-wide
89                 and are inherited by every service or user, unless
90                 overridden or unset by individual programs or
91                 individual users.</para>
92
93                 <para>Depending on the operating system other
94                 configuration files might be checked for locale
95                 configuration as well, however only as
96                 fallback.</para>
97         </refsect1>
98
99         <refsect1>
100                 <title>Options</title>
101
102                 <para>The following locale settings may be set using
103                 <filename>/etc/locale.conf</filename>:
104                 <varname>LANG=</varname>,
105                 <varname>LANGUAGE=</varname>,
106                 <varname>LC_CTYPE=</varname>,
107                 <varname>LC_NUMERIC=</varname>,
108                 <varname>LC_TIME=</varname>,
109                 <varname>LC_COLLATE=</varname>,
110                 <varname>LC_MONETARY=</varname>,
111                 <varname>LC_MESSAGES=</varname>,
112                 <varname>LC_PAPER=</varname>,
113                 <varname>LC_NAME=</varname>,
114                 <varname>LC_ADDRESS=</varname>,
115                 <varname>LC_TELEPHONE=</varname>,
116                 <varname>LC_MEASUREMENT=</varname>,
117                 <varname>LC_IDENTIFICATION=</varname>. Note that
118                 <varname>LC_ALL</varname> may not be be configured in
119                 this file. For details about the meaning and semantics
120                 of these settings, refer to
121                 <citerefentry><refentrytitle>locale</refentrytitle><manvolnum>7</manvolnum></citerefentry>.</para>
122         </refsect1>
123
124         <refsect1>
125                 <title>Example</title>
126
127                 <example>
128                         <title>German locale with English messages</title>
129
130                         <para><filename>/etc/locale.conf:</filename></para>
131
132                         <programlisting>LANG=de_DE.UTF-8
133 LC_MESSAGES=C</programlisting>
134                 </example>
135
136         </refsect1>
137
138         <refsect1>
139                   <title>See Also</title>
140                   <para>
141                           <citerefentry><refentrytitle>systemd</refentrytitle><manvolnum>1</manvolnum></citerefentry>,
142                           <citerefentry><refentrytitle>locale</refentrytitle><manvolnum>7</manvolnum></citerefentry>
143                   </para>
144         </refsect1>
145
146 </refentry>