]> git.ipfire.org Git - thirdparty/systemd.git/blame - man/locale.conf.xml
Reindent man pages to 2ch
[thirdparty/systemd.git] / man / locale.conf.xml
CommitLineData
ee486472
LP
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"
798d3a52 4 "http://www.oasis-open.org/docbook/xml/4.2/docbookx.dtd">
ee486472
LP
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
5430f7f2
LP
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
ee486472
LP
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
5430f7f2 19 Lesser General Public License for more details.
ee486472 20
5430f7f2 21 You should have received a copy of the GNU Lesser General Public License
ee486472
LP
22 along with systemd; If not, see <http://www.gnu.org/licenses/>.
23-->
24
25<refentry id="locale.conf">
798d3a52
ZJS
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 configures
58 system-wide locale settings. It is read at early-boot by
59 <citerefentry><refentrytitle>systemd</refentrytitle><manvolnum>1</manvolnum></citerefentry>.</para>
60
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
67 engine.</para>
68
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>
85
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>
90
91 <para>Depending on the operating system, other configuration files
92 might be checked for locale configuration as well, however only as
93 fallback.</para>
94
95 <para><citerefentry><refentrytitle>localectl</refentrytitle><manvolnum>1</manvolnum></citerefentry>
96 may be used to alter the settings in this file during runtime from
97 the command line. Use
98 <citerefentry><refentrytitle>systemd-firstboot</refentrytitle><manvolnum>1</manvolnum></citerefentry>
99 to initialize them on mounted (but not booted) system
100 images.</para>
101 </refsect1>
102
103 <refsect1>
104 <title>Options</title>
105
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
124 settings, refer to
125 <citerefentry><refentrytitle>locale</refentrytitle><manvolnum>7</manvolnum></citerefentry>.</para>
126 </refsect1>
127
128 <refsect1>
129 <title>Example</title>
130
131 <example>
132 <title>German locale with English messages</title>
133
134 <para><filename>/etc/locale.conf</filename>:</para>
135
136 <programlisting>LANG=de_DE.UTF-8
409dee2e 137LC_MESSAGES=en_US.UTF-8</programlisting>
798d3a52
ZJS
138 </example>
139
140 </refsect1>
141
142 <refsect1>
143 <title>See Also</title>
144 <para>
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>
150 </para>
151 </refsect1>
ee486472
LP
152
153</refentry>