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