LANG variable and language switching

Marius Gedminas marius at pov.lt
Thu May 31 14:59:38 UTC 2007


On Thu, May 31, 2007 at 07:31:35AM -0700, NoOp wrote:
> On 05/31/2007 05:13 AM, Milos Prudek wrote:
> >> I think if you add the line:
> >>
> >> LANG=cs_CZ.utf8
> >>
> >> in /etc/rc.conf and reboot, then it should work. (i'm not sure if ubuntu
> > 
> > Such file does not exist in Ubuntu. 
> 
> Ummm.... why yes it does.

/etc/rc.conf doesn't.  /etc/rc.local does.

> And if it doesn't on your system the file
> simply contains:
> 
> -----------------------------------------------------------------------
> #!/bin/sh -e
> #
> # rc.local
<...>

> >Even if it did, it would change the
> > language system-wide, for all users. That's not my purpose. I want to change 
> > the language for a single user.

I don't use Kubuntu myself.  With regular Ubuntu, when you choose the
language in the login manager, it sets $LANG appropriatelly.  You can
also set environment variables for your whole GNOME session in
~/.gnomerc.

Marius Gedminas
-- 
I've been in the sun for a week.  I took the bold step of leaving my
laptop at home.  I found only 4K messages pending when I returned.
	-- Keith Packard
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 189 bytes
Desc: Digital signature
URL: <https://lists.ubuntu.com/archives/ubuntu-users/attachments/20070531/b6f554e8/attachment.sig>


More information about the ubuntu-users mailing list