]> git.ipfire.org Git - thirdparty/systemd.git/blob - man/locale.conf.xml
load-fragment: remove wrong ifdef guard
[thirdparty/systemd.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. It is read at
59 early-boot by
60 <citerefentry><refentrytitle>systemd</refentrytitle><manvolnum>1</manvolnum></citerefentry>.</para>
61
62 <para>The basic file format of
63 <filename>locale.conf</filename> is a
64 newline-separated list of environment-like
65 shell-compatible variable assignments. It is possible
66 to source the configuration from shell scripts,
67 however, beyond mere variable assignments, no shell
68 features are supported, allowing applications to read
69 the file without implementing a shell compatible
70 execution engine.</para>
71
72 <para>Note that the kernel command line options
73 <varname>locale.LANG=</varname>,
74 <varname>locale.LANGUAGE=</varname>,
75 <varname>locale.LC_CTYPE=</varname>,
76 <varname>locale.LC_NUMERIC=</varname>,
77 <varname>locale.LC_TIME=</varname>,
78 <varname>locale.LC_COLLATE=</varname>,
79 <varname>locale.LC_MONETARY=</varname>,
80 <varname>locale.LC_MESSAGES=</varname>,
81 <varname>locale.LC_PAPER=</varname>,
82 <varname>locale.LC_NAME=</varname>,
83 <varname>locale.LC_ADDRESS=</varname>,
84 <varname>locale.LC_TELEPHONE=</varname>,
85 <varname>locale.LC_MEASUREMENT=</varname>,
86 <varname>locale.LC_IDENTIFICATION=</varname> may be
87 used to override the locale settings at boot.</para>
88
89 <para>The locale settings configured in
90 <filename>/etc/locale.conf</filename> are system-wide
91 and are inherited by every service or user, unless
92 overridden or unset by individual programs or
93 individual users.</para>
94
95 <para>Depending on the operating system, other
96 configuration files might be checked for locale
97 configuration as well, however only as
98 fallback.</para>
99
100 <para><citerefentry><refentrytitle>localectl</refentrytitle><manvolnum>1</manvolnum></citerefentry>
101 may be used to alter the settings in this file during
102 runtime from the command line. Use
103 <citerefentry><refentrytitle>systemd-firstboot</refentrytitle><manvolnum>1</manvolnum></citerefentry>
104 to initialize them on mounted (but not booted) system
105 images.</para>
106 </refsect1>
107
108 <refsect1>
109 <title>Options</title>
110
111 <para>The following locale settings may be set using
112 <filename>/etc/locale.conf</filename>:
113 <varname>LANG=</varname>,
114 <varname>LANGUAGE=</varname>,
115 <varname>LC_CTYPE=</varname>,
116 <varname>LC_NUMERIC=</varname>,
117 <varname>LC_TIME=</varname>,
118 <varname>LC_COLLATE=</varname>,
119 <varname>LC_MONETARY=</varname>,
120 <varname>LC_MESSAGES=</varname>,
121 <varname>LC_PAPER=</varname>,
122 <varname>LC_NAME=</varname>,
123 <varname>LC_ADDRESS=</varname>,
124 <varname>LC_TELEPHONE=</varname>,
125 <varname>LC_MEASUREMENT=</varname>,
126 <varname>LC_IDENTIFICATION=</varname>. Note that
127 <varname>LC_ALL</varname> may not be configured in
128 this file. For details about the meaning and semantics
129 of these settings, refer to
130 <citerefentry><refentrytitle>locale</refentrytitle><manvolnum>7</manvolnum></citerefentry>.</para>
131 </refsect1>
132
133 <refsect1>
134 <title>Example</title>
135
136 <example>
137 <title>German locale with English messages</title>
138
139 <para><filename>/etc/locale.conf</filename>:</para>
140
141 <programlisting>LANG=de_DE.UTF-8
142 LC_MESSAGES=en_US.UTF-8</programlisting>
143 </example>
144
145 </refsect1>
146
147 <refsect1>
148 <title>See Also</title>
149 <para>
150 <citerefentry><refentrytitle>systemd</refentrytitle><manvolnum>1</manvolnum></citerefentry>,
151 <citerefentry><refentrytitle>locale</refentrytitle><manvolnum>7</manvolnum></citerefentry>,
152 <citerefentry><refentrytitle>localectl</refentrytitle><manvolnum>1</manvolnum></citerefentry>,
153 <citerefentry><refentrytitle>systemd-localed.service</refentrytitle><manvolnum>8</manvolnum></citerefentry>,
154 <citerefentry><refentrytitle>systemd-firstboot</refentrytitle><manvolnum>1</manvolnum></citerefentry>
155 </para>
156 </refsect1>
157
158 </refentry>