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