165 lines
3.9 KiB
HTML
165 lines
3.9 KiB
HTML
|
|
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
|
|
<HTML><HEAD><TITLE>Man page of LOCALE.CONF</TITLE>
|
|
</HEAD><BODY>
|
|
<H1>LOCALE.CONF</H1>
|
|
Section: locale.conf (5)<BR>Updated: <BR><A HREF="#index">Index</A>
|
|
<A HREF="/cgi-bin/man/man2html">Return to Main Contents</A><HR>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<A NAME="lbAB"> </A>
|
|
<H2>NAME</H2>
|
|
|
|
locale.conf - Configuration file for locale settings
|
|
<A NAME="lbAC"> </A>
|
|
<H2>SYNOPSIS</H2>
|
|
|
|
<P>
|
|
|
|
/etc/locale.conf
|
|
<A NAME="lbAD"> </A>
|
|
<H2>DESCRIPTION</H2>
|
|
|
|
<P>
|
|
|
|
The
|
|
/etc/locale.conf
|
|
file configures system-wide locale settings. It is read at early boot by
|
|
<B><A HREF="/cgi-bin/man/man2html?1+systemd">systemd</A></B>(1).
|
|
<P>
|
|
|
|
The basic file format of
|
|
locale.conf
|
|
is a newline-separated list of environment-like shell-compatible variable assignments. It is possible to source the configuration from shell scripts, however, beyond mere variable assignments, no shell features are supported, allowing applications to read the file without implementing a shell compatible execution engine.
|
|
<P>
|
|
|
|
Note that the kernel command line options
|
|
<I>locale.LANG=</I>,
|
|
<I>locale.LANGUAGE=</I>,
|
|
<I>locale.LC_CTYPE=</I>,
|
|
<I>locale.LC_NUMERIC=</I>,
|
|
<I>locale.LC_TIME=</I>,
|
|
<I>locale.LC_COLLATE=</I>,
|
|
<I>locale.LC_MONETARY=</I>,
|
|
<I>locale.LC_MESSAGES=</I>,
|
|
<I>locale.LC_PAPER=</I>,
|
|
<I>locale.LC_NAME=</I>,
|
|
<I>locale.LC_ADDRESS=</I>,
|
|
<I>locale.LC_TELEPHONE=</I>,
|
|
<I>locale.LC_MEASUREMENT=</I>,
|
|
<I>locale.LC_IDENTIFICATION=</I>
|
|
may be used to override the locale settings at boot.
|
|
<P>
|
|
|
|
The locale settings configured in
|
|
/etc/locale.conf
|
|
are system-wide and are inherited by every service or user, unless overridden or unset by individual programs or individual users.
|
|
<P>
|
|
|
|
Depending on the operating system, other configuration files might be checked for locale configuration as well, however only as fallback.
|
|
<P>
|
|
|
|
/etc/locale.conf
|
|
is usually created and updated using
|
|
<B><A HREF="/cgi-bin/man/man2html?8+systemd-localed.service">systemd-localed.service</A></B>(8).
|
|
<B><A HREF="/cgi-bin/man/man2html?1+localectl">localectl</A></B>(1)
|
|
may be used to alter the settings in this file during runtime from the command line. Use
|
|
<B><A HREF="/cgi-bin/man/man2html?1+systemd-firstboot">systemd-firstboot</A></B>(1)
|
|
to initialize them on mounted (but not booted) system images.
|
|
<A NAME="lbAE"> </A>
|
|
<H2>OPTIONS</H2>
|
|
|
|
<P>
|
|
|
|
The following locale settings may be set using
|
|
/etc/locale.conf:
|
|
<I>LANG=</I>,
|
|
<I>LANGUAGE=</I>,
|
|
<I>LC_CTYPE=</I>,
|
|
<I>LC_NUMERIC=</I>,
|
|
<I>LC_TIME=</I>,
|
|
<I>LC_COLLATE=</I>,
|
|
<I>LC_MONETARY=</I>,
|
|
<I>LC_MESSAGES=</I>,
|
|
<I>LC_PAPER=</I>,
|
|
<I>LC_NAME=</I>,
|
|
<I>LC_ADDRESS=</I>,
|
|
<I>LC_TELEPHONE=</I>,
|
|
<I>LC_MEASUREMENT=</I>,
|
|
<I>LC_IDENTIFICATION=</I>. Note that
|
|
<I>LC_ALL</I>
|
|
may not be configured in this file. For details about the meaning and semantics of these settings, refer to
|
|
<B><A HREF="/cgi-bin/man/man2html?7+locale">locale</A></B>(7).
|
|
<A NAME="lbAF"> </A>
|
|
<H2>EXAMPLE</H2>
|
|
|
|
<P>
|
|
|
|
<B>Example 1. German locale with English messages</B>
|
|
<P>
|
|
|
|
/etc/locale.conf:
|
|
<P>
|
|
<DL COMPACT><DT id="1"><DD>
|
|
|
|
|
|
|
|
<PRE>
|
|
LANG=de_DE.UTF-8
|
|
LC_MESSAGES=en_US.UTF-8
|
|
</PRE>
|
|
|
|
</DL>
|
|
|
|
|
|
|
|
|
|
<A NAME="lbAG"> </A>
|
|
<H2>SEE ALSO</H2>
|
|
|
|
<P>
|
|
|
|
<B><A HREF="/cgi-bin/man/man2html?1+systemd">systemd</A></B>(1),
|
|
<B><A HREF="/cgi-bin/man/man2html?7+locale">locale</A></B>(7),
|
|
<B><A HREF="/cgi-bin/man/man2html?1+localectl">localectl</A></B>(1),
|
|
<B><A HREF="/cgi-bin/man/man2html?8+systemd-localed.service">systemd-localed.service</A></B>(8),
|
|
<B><A HREF="/cgi-bin/man/man2html?1+systemd-firstboot">systemd-firstboot</A></B>(1)
|
|
<P>
|
|
|
|
<HR>
|
|
<A NAME="index"> </A><H2>Index</H2>
|
|
<DL>
|
|
<DT id="2"><A HREF="#lbAB">NAME</A><DD>
|
|
<DT id="3"><A HREF="#lbAC">SYNOPSIS</A><DD>
|
|
<DT id="4"><A HREF="#lbAD">DESCRIPTION</A><DD>
|
|
<DT id="5"><A HREF="#lbAE">OPTIONS</A><DD>
|
|
<DT id="6"><A HREF="#lbAF">EXAMPLE</A><DD>
|
|
<DT id="7"><A HREF="#lbAG">SEE ALSO</A><DD>
|
|
</DL>
|
|
<HR>
|
|
This document was created by
|
|
<A HREF="/cgi-bin/man/man2html">man2html</A>,
|
|
using the manual pages.<BR>
|
|
Time: 00:06:03 GMT, March 31, 2021
|
|
</BODY>
|
|
</HTML>
|