From owner-freebsd-gnome@FreeBSD.ORG Fri Aug 31 16:07:33 2007 Return-Path: Delivered-To: freebsd-gnome@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 97E1416A469 for ; Fri, 31 Aug 2007 16:07:33 +0000 (UTC) (envelope-from greenant@fastmail.fm) Received: from averell.tiscali.it (averell.tiscali.it [213.205.33.55]) by mx1.freebsd.org (Postfix) with ESMTP id 22C5C13C48A for ; Fri, 31 Aug 2007 16:07:33 +0000 (UTC) (envelope-from greenant@fastmail.fm) Received: from [192.168.8.3] (84.223.95.19) by averell.tiscali.it (7.3.122) id 468D1A800069024F for freebsd-gnome@freebsd.org; Fri, 31 Aug 2007 18:07:13 +0200 Message-ID: <46D83CB0.9020708@fastmail.fm> Date: Fri, 31 Aug 2007 18:07:12 +0200 From: Alberto Rizzi User-Agent: Thunderbird 2.0.0.6 (X11/20070819) MIME-Version: 1.0 To: freebsd-gnome@freebsd.org References: <46D7073A.4000605@fastmail.fm> <1188500173.51256.31.camel@shumai.marcuscom.com> <1af6a62f0708301203n3708aa59g30b99143cb64ed97@mail.gmail.com> <1188503195.51256.38.camel@shumai.marcuscom.com> <46D7BD0B.8010009@fastmail.fm> <1188544237.51256.94.camel@shumai.marcuscom.com> In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Subject: Re: Gdm and user localization X-BeenThere: freebsd-gnome@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: GNOME for FreeBSD -- porting and maintaining List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 31 Aug 2007 16:07:33 -0000 Marcin Wisnicki ha scritto: > On Fri, 31 Aug 2007 03:10:37 -0400, Joe Marcus Clarke wrote: > >> On Fri, 2007-08-31 at 09:02 +0200, Alberto Rizzi wrote: >>> Seems that gdm use the system default language, but how can I set the >>> system default language? >>> >>> I can set the user language (in .login_conf) or the user-class language >>> (in login.conf) but how can I set a system default language? >>> >>> Through an environment variable? >> For now, edit /usr/local/etc/rc.d/gdm and add: >> >> export LANG=it_IT.UTF-8 >> >> Joe This works but it is only a partial solution, because in works only for gdm, and not other programs > > another way is to create file /etc/sysconfig/language with: > > echo it_IT.UTF-8 > This doesn't work and I didn't find any documentation about it in the FreeBSD world, but only under Suse and other linux distro I have to export the LANG variable for each user, with or without shell access. If I export LANG through /etc/profile I accomplish this task but that overrides settings in ~/.login_conf I need something that is indipendent from the shell and doesn't ovverride settings in ~/.login_conf