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
58 configures system-wide locale settings. It is read at
60 <citerefentry><refentrytitle>systemd</refentrytitle><manvolnum>1</manvolnum></citerefentry>.</para>
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>
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>
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>
95 <para>Depending on the operating system, other
96 configuration files might be checked for locale
97 configuration as well, however only as
102 <title>Options</title>
104 <para>The following locale settings may be set using
105 <filename>/etc/locale.conf</filename>:
106 <varname>LANG=</varname>,
107 <varname>LANGUAGE=</varname>,
108 <varname>LC_CTYPE=</varname>,
109 <varname>LC_NUMERIC=</varname>,
110 <varname>LC_TIME=</varname>,
111 <varname>LC_COLLATE=</varname>,
112 <varname>LC_MONETARY=</varname>,
113 <varname>LC_MESSAGES=</varname>,
114 <varname>LC_PAPER=</varname>,
115 <varname>LC_NAME=</varname>,
116 <varname>LC_ADDRESS=</varname>,
117 <varname>LC_TELEPHONE=</varname>,
118 <varname>LC_MEASUREMENT=</varname>,
119 <varname>LC_IDENTIFICATION=</varname>. Note that
120 <varname>LC_ALL</varname> may not be configured in
121 this file. For details about the meaning and semantics
122 of these settings, refer to
123 <citerefentry><refentrytitle>locale</refentrytitle><manvolnum>7</manvolnum></citerefentry>.</para>
127 <title>Example</title>
130 <title>German locale with English messages</title>
132 <para><filename>/etc/locale.conf</filename>:</para>
134 <programlisting>LANG=de_DE.UTF-8
135 LC_MESSAGES=en_US.UTF-8</programlisting>
141 <title>See Also</title>
143 <citerefentry><refentrytitle>systemd</refentrytitle><manvolnum>1</manvolnum></citerefentry>,
144 <citerefentry><refentrytitle>locale</refentrytitle><manvolnum>7</manvolnum></citerefentry>,
145 <citerefentry><refentrytitle>systemd-localed.service</refentrytitle><manvolnum>8</manvolnum></citerefentry>