man-pages/man8/update-locale.8.html
2021-03-31 01:06:50 +01:00

108 lines
2.6 KiB
HTML

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<HTML><HEAD><TITLE>Man page of UPDATE-LOCALE</TITLE>
</HEAD><BODY>
<H1>UPDATE-LOCALE</H1>
Section: Maintenance Commands (8)<BR>Updated: April 2006<BR><A HREF="#index">Index</A>
<A HREF="/cgi-bin/man/man2html">Return to Main Contents</A><HR>
<A NAME="lbAB">&nbsp;</A>
<H2>NAME</H2>
<P>
update-locale - Modify global locale settings
<A NAME="lbAC">&nbsp;</A>
<H2>SYNTAX</H2>
<P>
update-locale
[<I>OPTIONS</I>]
[<I>var</I>=<I>locale</I> | <I>var</I>]
[...]
<A NAME="lbAD">&nbsp;</A>
<H2>DESCRIPTION</H2>
<P>
This program can be called by maintainer scripts when Debian packages are
installed or removed, it updates the <B>/etc/default/locale</B> file to
reflect changes in system configuration related to global locale settings.
When variables have no value assigned, they are removed from the locale
file.
Some basic checks are performed to ensure that requested settings are valid.
<A NAME="lbAE">&nbsp;</A>
<H2>OPTIONS</H2>
<DL COMPACT>
<DT id="1"><B>--help</B>
<DD>
Display an help message and exit.
<DT id="2"><B>--reset</B>
<DD>
Variables which are not set on command-line are cleared out.
<DT id="3"><B>--locale-file</B><I> FILE</I>
<DD>
Define file containing locale variables. (Default:
<B>/etc/default/locale</B>)
<DT id="4"><B>--no-checks</B>
<DD>
Do not perform sanity checks on locale variables.
</DL>
<A NAME="lbAF">&nbsp;</A>
<H2>EXAMPLE</H2>
<PRE>
The command
<B> update-locale LANG=en_CA.UTF-8 LANGUAGE
</B>sets <B>LANG</B> to <B>en_CA.UTF-8</B> and removes definitions for <B>LANGUAGE</B>.
</PRE><A NAME="lbAG">&nbsp;</A>
<H2>FILES</H2>
<DL COMPACT>
<DT id="5"><B>/etc/default/locale</B>
<DD>
File where global locale settings are stored.
</DL>
<A NAME="lbAH">&nbsp;</A>
<H2>AUTHOR</H2>
<P>
Denis Barbier &lt;<A HREF="mailto:barbier@linuxfr.org">barbier@linuxfr.org</A>&gt;
<A NAME="lbAI">&nbsp;</A>
<H2>SEE ALSO</H2>
<P>
<A HREF="/cgi-bin/man/man2html?8+locale-gen">locale-gen</A>(8), <A HREF="/cgi-bin/man/man2html?1+locale">locale</A>(1)
<P>
<HR>
<A NAME="index">&nbsp;</A><H2>Index</H2>
<DL>
<DT id="6"><A HREF="#lbAB">NAME</A><DD>
<DT id="7"><A HREF="#lbAC">SYNTAX</A><DD>
<DT id="8"><A HREF="#lbAD">DESCRIPTION</A><DD>
<DT id="9"><A HREF="#lbAE">OPTIONS</A><DD>
<DT id="10"><A HREF="#lbAF">EXAMPLE</A><DD>
<DT id="11"><A HREF="#lbAG">FILES</A><DD>
<DT id="12"><A HREF="#lbAH">AUTHOR</A><DD>
<DT id="13"><A HREF="#lbAI">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:18 GMT, March 31, 2021
</BODY>
</HTML>