]> git.ipfire.org Git - thirdparty/systemd.git/blob - man/locale.conf.xml
bb7e1130e2bff0319827e40718871437d4e66537
[thirdparty/systemd.git] / man / locale.conf.xml
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">
5
6 <!--
7 This file is part of systemd.
8
9 Copyright 2010 Lennart Poettering
10
11 systemd is free software; you can redistribute it and/or modify it
12 under the terms of the GNU General Public License as published by
13 the Free Software Foundation; either version 2 of the License, or
14 (at your option) any later version.
15
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 General Public License for more details.
20
21 You should have received a copy of the GNU General Public License
22 along with systemd; If not, see <http://www.gnu.org/licenses/>.
23 -->
24
25 <refentry id="locale.conf">
26 <refentryinfo>
27 <title>locale.conf</title>
28 <productname>systemd</productname>
29
30 <authorgroup>
31 <author>
32 <contrib>Developer</contrib>
33 <firstname>Lennart</firstname>
34 <surname>Poettering</surname>
35 <email>lennart@poettering.net</email>
36 </author>
37 </authorgroup>
38 </refentryinfo>
39
40 <refmeta>
41 <refentrytitle>locale.conf</refentrytitle>
42 <manvolnum>5</manvolnum>
43 </refmeta>
44
45 <refnamediv>
46 <refname>locale.conf</refname>
47 <refpurpose>configuration file for locale settings</refpurpose>
48 </refnamediv>
49
50 <refsynopsisdiv>
51 <para><filename>/etc/locale.conf</filename></para>
52 </refsynopsisdiv>
53
54 <refsect1>
55 <title>Description</title>
56
57 <para>The <filename>/etc/locale.conf</filename> file
58 configures system-wide locale settings.</para>
59
60 <para>The basic file format of
61 <filename>locale.conf</filename> is a
62 newline-separated list of environment-like
63 shell-compatible variable assignments. It is possible
64 to source the configuration from shell scripts,
65 however, beyond mere variable assignments no shell
66 features are supported, allowing applications to read
67 the file without implementing a shell compatible
68 execution engine.</para>
69
70 <para>Note that the kernel command line options
71 <varname>locale.LANG=</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>
85
86 <para>The locale settings configured in
87 <filename>/etc/locale.conf</filename> are system-wide
88 and are inherited by every service or user, unless
89 overriden or unset by individual programs or
90 individual users.</para>
91
92 <para>Depending on the operating system other
93 configuration files might be checked for locale
94 configuration as well, however only as
95 fallback.</para>
96 </refsect1>
97
98 <refsect1>
99 <title>Options</title>
100
101 <para>The following locale settings may be set using
102 <filename>/etc/locale.conf</filename>:
103 <varname>LANG=</varname>,
104 <varname>LC_CTYPE=</varname>,
105 <varname>LC_NUMERIC=</varname>,
106 <varname>LC_TIME=</varname>,
107 <varname>LC_COLLATE=</varname>,
108 <varname>LC_MONETARY=</varname>,
109 <varname>LC_MESSAGES=</varname>,
110 <varname>LC_PAPER=</varname>,
111 <varname>LC_NAME=</varname>,
112 <varname>LC_ADDRESS=</varname>,
113 <varname>LC_TELEPHONE=</varname>,
114 <varname>LC_MEASUREMENT=</varname>,
115 <varname>LC_IDENTIFICATION=</varname>. Note that
116 <varname>LC_ALL</varname> may not be be configured in
117 this file. For details about the meaning and semantics
118 of these settings, refer to
119 <citerefentry><refentrytitle>locale</refentrytitle><manvolnum>7</manvolnum></citerefentry>.</para>
120 </refsect1>
121
122 <refsect1>
123 <title>Example</title>
124
125 <example>
126 <title>German locale with english messages</title>
127
128 <para><filename>/etc/locale.conf:</filename></para>
129
130 <programlisting>LANG=de_DE.UTF-8
131 LC_MESSAGES=C</programlisting>
132 </example>
133
134 </refsect1>
135
136 <refsect1>
137 <title>See Also</title>
138 <para>
139 <citerefentry><refentrytitle>systemd</refentrytitle><manvolnum>1</manvolnum></citerefentry>,
140 <citerefentry><refentrytitle>locale</refentrytitle><manvolnum>7</manvolnum></citerefentry>
141 </para>
142 </refsect1>
143
144 </refentry>