<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta content="text/html;charset=ISO-8859-1" http-equiv="Content-Type">
</head>
<body dir="ltr" bgcolor="#ffffff" text="#000000">
Diego Iastrubni wrote:
<blockquote cite="mid:200909262125.39216.elcuco@kde.org" type="cite">
<pre wrap="">On Friday 25 September 2009 00:15:40 Shachar Shemesh wrote:
</pre>
<blockquote type="cite">
<pre wrap="">I don't know about Ubuntu, but in Debian these variables are set either
in /etc/default/locale or /etc/environment. Also, the "official" way of
changing those is by doing "dpkg-reconfigure locales" as root.
</pre>
</blockquote>
<pre wrap=""><!---->
On Debian/Ubuntu, "dpkg-reconfigure locales" is a light wrapper around
localgegen (I think, I am currently on Fedora...). On Mandriva, you can
install each one of those locales by an rpm instead of generating them on your
machine. If you want to change the locale of your system, this is a mandatory
step.
However it does not change the locale.</pre>
</blockquote>
localegen doesn't. dpkg-reconfigure locales does. It does both.<br>
<br>
<blockquote cite="mid:200909262125.39216.elcuco@kde.org" type="cite">
<pre wrap=""> What I usually do (works on
Debian/Ubuntu/Mandriva/Fedora) is:
locale > ~/.i18n
and then edit ~/.i18n as needed. Here it is on my machine:
[elcuco@pinky ~] cat /home/elcuco/.i18n
LANG=en_US.UTF-8
</pre>
</blockquote>
Okay. Not optimal, but will do.<br>
<blockquote cite="mid:200909262125.39216.elcuco@kde.org" type="cite">
<pre wrap="">LC_CTYPE="he_IL.UTF-8"
</pre>
</blockquote>
Yes, that usually complements the first.<br>
<blockquote cite="mid:200909262125.39216.elcuco@kde.org" type="cite">
<pre wrap="">LC_NUMERIC="en_US.UTF-8"
LC_TIME="en_US.UTF-8"
LC_COLLATE="en_US.UTF-8"
LC_MONETARY="en_US.UTF-8"
LC_MESSAGES="he_IL.UTF-8"
LC_MESSAGES="en_US.UTF-8"
LC_PAPER="en_US.UTF-8"
LC_NAME="en_US.UTF-8"
LC_ADDRESS="en_US.UTF-8"
LC_TELEPHONE="en_US.UTF-8"
LC_MEASUREMENT="en_US.UTF-8"
LC_IDENTIFICATION="en_US.UTF-8"
</pre>
</blockquote>
Unnecessary. These default to the locale if not set.<br>
<blockquote cite="mid:200909262125.39216.elcuco@kde.org" type="cite">
<pre wrap="">LC_ALL=
</pre>
</blockquote>
Dangerous. If this is set, it overrides everything else.<br>
<br>
Personally, I think setting LANG to he_IL.UTF-8, and then set
LC_MESSAGES to en_US to make the interface language remain in English.<br>
<br>
And if you want it set globally, /etc/default/locale is still a better
place to put these lines.<br>
<br>
Shachar<br>
<br>
<br>
<pre class="moz-signature" cols="72">--
Shachar Shemesh
Lingnu Open Source Consulting Ltd.
<a class="moz-txt-link-freetext" href="http://www.lingnu.com">http://www.lingnu.com</a>
</pre>
</body>
</html>