]> git.ipfire.org Git - thirdparty/systemd.git/blame - man/locale.conf.xml
Merge pull request #8417 from brauner/2018-03-09/add_bind_mount_fallback_to_private_d...
[thirdparty/systemd.git] / man / locale.conf.xml
CommitLineData
ee486472 1<?xml version='1.0'?> <!--*-nxml-*-->
ee486472 2<!DOCTYPE refentry PUBLIC "-//OASIS//DTD DocBook XML V4.2//EN"
12b42c76 3 "http://www.oasis-open.org/docbook/xml/4.2/docbookx.dtd">
ee486472
LP
4
5<!--
572eb058
ZJS
6 SPDX-License-Identifier: LGPL-2.1+
7
ee486472
LP
8 This file is part of systemd.
9
10 Copyright 2010 Lennart Poettering
ee486472
LP
11-->
12
13<refentry id="locale.conf">
798d3a52
ZJS
14 <refentryinfo>
15 <title>locale.conf</title>
16 <productname>systemd</productname>
17
18 <authorgroup>
19 <author>
20 <contrib>Developer</contrib>
21 <firstname>Lennart</firstname>
22 <surname>Poettering</surname>
23 <email>lennart@poettering.net</email>
24 </author>
25 </authorgroup>
26 </refentryinfo>
27
28 <refmeta>
29 <refentrytitle>locale.conf</refentrytitle>
30 <manvolnum>5</manvolnum>
31 </refmeta>
32
33 <refnamediv>
34 <refname>locale.conf</refname>
35 <refpurpose>Configuration file for locale settings</refpurpose>
36 </refnamediv>
37
38 <refsynopsisdiv>
39 <para><filename>/etc/locale.conf</filename></para>
40 </refsynopsisdiv>
41
42 <refsect1>
43 <title>Description</title>
44
45 <para>The <filename>/etc/locale.conf</filename> file configures
b938cb90 46 system-wide locale settings. It is read at early boot by
798d3a52
ZJS
47 <citerefentry><refentrytitle>systemd</refentrytitle><manvolnum>1</manvolnum></citerefentry>.</para>
48
49 <para>The basic file format of <filename>locale.conf</filename> is
50 a newline-separated list of environment-like shell-compatible
51 variable assignments. It is possible to source the configuration
52 from shell scripts, however, beyond mere variable assignments, no
53 shell features are supported, allowing applications to read the
54 file without implementing a shell compatible execution
55 engine.</para>
56
57 <para>Note that the kernel command line options
58 <varname>locale.LANG=</varname>,
59 <varname>locale.LANGUAGE=</varname>,
60 <varname>locale.LC_CTYPE=</varname>,
61 <varname>locale.LC_NUMERIC=</varname>,
62 <varname>locale.LC_TIME=</varname>,
63 <varname>locale.LC_COLLATE=</varname>,
64 <varname>locale.LC_MONETARY=</varname>,
65 <varname>locale.LC_MESSAGES=</varname>,
66 <varname>locale.LC_PAPER=</varname>,
67 <varname>locale.LC_NAME=</varname>,
68 <varname>locale.LC_ADDRESS=</varname>,
69 <varname>locale.LC_TELEPHONE=</varname>,
70 <varname>locale.LC_MEASUREMENT=</varname>,
71 <varname>locale.LC_IDENTIFICATION=</varname> may be
72 used to override the locale settings at boot.</para>
73
74 <para>The locale settings configured in
75 <filename>/etc/locale.conf</filename> are system-wide and are
76 inherited by every service or user, unless overridden or unset by
77 individual programs or individual users.</para>
78
79 <para>Depending on the operating system, other configuration files
80 might be checked for locale configuration as well, however only as
81 fallback.</para>
82
8968e36f
ZJS
83 <para><filename>/etc/vconsole.conf</filename> is usually created and updated
84 using
85 <citerefentry><refentrytitle>systemd-localed.service</refentrytitle><manvolnum>8</manvolnum></citerefentry>.
86 <citerefentry project='man-pages'><refentrytitle>localectl</refentrytitle><manvolnum>1</manvolnum></citerefentry>
798d3a52
ZJS
87 may be used to alter the settings in this file during runtime from
88 the command line. Use
89 <citerefentry><refentrytitle>systemd-firstboot</refentrytitle><manvolnum>1</manvolnum></citerefentry>
8968e36f 90 to initialize them on mounted (but not booted) system images.</para>
798d3a52
ZJS
91 </refsect1>
92
93 <refsect1>
94 <title>Options</title>
95
96 <para>The following locale settings may be set using
97 <filename>/etc/locale.conf</filename>:
98 <varname>LANG=</varname>,
99 <varname>LANGUAGE=</varname>,
100 <varname>LC_CTYPE=</varname>,
101 <varname>LC_NUMERIC=</varname>,
102 <varname>LC_TIME=</varname>,
103 <varname>LC_COLLATE=</varname>,
104 <varname>LC_MONETARY=</varname>,
105 <varname>LC_MESSAGES=</varname>,
106 <varname>LC_PAPER=</varname>,
107 <varname>LC_NAME=</varname>,
108 <varname>LC_ADDRESS=</varname>,
109 <varname>LC_TELEPHONE=</varname>,
110 <varname>LC_MEASUREMENT=</varname>,
111 <varname>LC_IDENTIFICATION=</varname>.
112 Note that <varname>LC_ALL</varname> may not be configured in this
113 file. For details about the meaning and semantics of these
114 settings, refer to
3ba3a79d 115 <citerefentry project='man-pages'><refentrytitle>locale</refentrytitle><manvolnum>7</manvolnum></citerefentry>.</para>
798d3a52
ZJS
116 </refsect1>
117
118 <refsect1>
119 <title>Example</title>
120
121 <example>
122 <title>German locale with English messages</title>
123
124 <para><filename>/etc/locale.conf</filename>:</para>
125
126 <programlisting>LANG=de_DE.UTF-8
409dee2e 127LC_MESSAGES=en_US.UTF-8</programlisting>
798d3a52
ZJS
128 </example>
129
130 </refsect1>
131
132 <refsect1>
133 <title>See Also</title>
134 <para>
135 <citerefentry><refentrytitle>systemd</refentrytitle><manvolnum>1</manvolnum></citerefentry>,
3ba3a79d
ZJS
136 <citerefentry project='man-pages'><refentrytitle>locale</refentrytitle><manvolnum>7</manvolnum></citerefentry>,
137 <citerefentry project='man-pages'><refentrytitle>localectl</refentrytitle><manvolnum>1</manvolnum></citerefentry>,
798d3a52
ZJS
138 <citerefentry><refentrytitle>systemd-localed.service</refentrytitle><manvolnum>8</manvolnum></citerefentry>,
139 <citerefentry><refentrytitle>systemd-firstboot</refentrytitle><manvolnum>1</manvolnum></citerefentry>
140 </para>
141 </refsect1>
ee486472
LP
142
143</refentry>