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">
7 This file is part of systemd.
9 Copyright 2010 Lennart Poettering
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.
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.
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/>.
25 <refentry id="locale.conf">
27 <title>locale.conf</title>
28 <productname>systemd</productname>
32 <contrib>Developer</contrib>
33 <firstname>Lennart</firstname>
34 <surname>Poettering</surname>
35 <email>lennart@poettering.net</email>
41 <refentrytitle>locale.conf</refentrytitle>
42 <manvolnum>5</manvolnum>
46 <refname>locale.conf</refname>
47 <refpurpose>Configuration file for locale settings</refpurpose>
51 <para><filename>/etc/locale.conf</filename></para>
55 <title>Description</title>
57 <para>The <filename>/etc/locale.conf</filename> file configures
58 system-wide locale settings. It is read at early-boot by
59 <citerefentry><refentrytitle>systemd</refentrytitle><manvolnum>1</manvolnum></citerefentry>.</para>
61 <para>The basic file format of <filename>locale.conf</filename> is
62 a newline-separated list of environment-like shell-compatible
63 variable assignments. It is possible to source the configuration
64 from shell scripts, however, beyond mere variable assignments, no
65 shell features are supported, allowing applications to read the
66 file without implementing a shell compatible execution
69 <para>Note that the kernel command line options
70 <varname>locale.LANG=</varname>,
71 <varname>locale.LANGUAGE=</varname>,
72 <varname>locale.LC_CTYPE=</varname>,
73 <varname>locale.LC_NUMERIC=</varname>,
74 <varname>locale.LC_TIME=</varname>,
75 <varname>locale.LC_COLLATE=</varname>,
76 <varname>locale.LC_MONETARY=</varname>,
77 <varname>locale.LC_MESSAGES=</varname>,
78 <varname>locale.LC_PAPER=</varname>,
79 <varname>locale.LC_NAME=</varname>,
80 <varname>locale.LC_ADDRESS=</varname>,
81 <varname>locale.LC_TELEPHONE=</varname>,
82 <varname>locale.LC_MEASUREMENT=</varname>,
83 <varname>locale.LC_IDENTIFICATION=</varname> may be
84 used to override the locale settings at boot.</para>
86 <para>The locale settings configured in
87 <filename>/etc/locale.conf</filename> are system-wide and are
88 inherited by every service or user, unless overridden or unset by
89 individual programs or individual users.</para>
91 <para>Depending on the operating system, other configuration files
92 might be checked for locale configuration as well, however only as
95 <para><citerefentry><refentrytitle>localectl</refentrytitle><manvolnum>1</manvolnum></citerefentry>
96 may be used to alter the settings in this file during runtime from
98 <citerefentry><refentrytitle>systemd-firstboot</refentrytitle><manvolnum>1</manvolnum></citerefentry>
99 to initialize them on mounted (but not booted) system
104 <title>Options</title>
106 <para>The following locale settings may be set using
107 <filename>/etc/locale.conf</filename>:
108 <varname>LANG=</varname>,
109 <varname>LANGUAGE=</varname>,
110 <varname>LC_CTYPE=</varname>,
111 <varname>LC_NUMERIC=</varname>,
112 <varname>LC_TIME=</varname>,
113 <varname>LC_COLLATE=</varname>,
114 <varname>LC_MONETARY=</varname>,
115 <varname>LC_MESSAGES=</varname>,
116 <varname>LC_PAPER=</varname>,
117 <varname>LC_NAME=</varname>,
118 <varname>LC_ADDRESS=</varname>,
119 <varname>LC_TELEPHONE=</varname>,
120 <varname>LC_MEASUREMENT=</varname>,
121 <varname>LC_IDENTIFICATION=</varname>.
122 Note that <varname>LC_ALL</varname> may not be configured in this
123 file. For details about the meaning and semantics of these
125 <citerefentry><refentrytitle>locale</refentrytitle><manvolnum>7</manvolnum></citerefentry>.</para>
129 <title>Example</title>
132 <title>German locale with English messages</title>
134 <para><filename>/etc/locale.conf</filename>:</para>
136 <programlisting>LANG=de_DE.UTF-8
137 LC_MESSAGES=en_US.UTF-8</programlisting>
143 <title>See Also</title>
145 <citerefentry><refentrytitle>systemd</refentrytitle><manvolnum>1</manvolnum></citerefentry>,
146 <citerefentry><refentrytitle>locale</refentrytitle><manvolnum>7</manvolnum></citerefentry>,
147 <citerefentry><refentrytitle>localectl</refentrytitle><manvolnum>1</manvolnum></citerefentry>,
148 <citerefentry><refentrytitle>systemd-localed.service</refentrytitle><manvolnum>8</manvolnum></citerefentry>,
149 <citerefentry><refentrytitle>systemd-firstboot</refentrytitle><manvolnum>1</manvolnum></citerefentry>