From owner-freebsd-questions@FreeBSD.ORG Wed Jun 25 16:56:36 2014 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id C22F85BE for ; Wed, 25 Jun 2014 16:56:36 +0000 (UTC) Received: from mx02.qsc.de (mx02.qsc.de [213.148.130.14]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 830352D46 for ; Wed, 25 Jun 2014 16:56:36 +0000 (UTC) Received: from r56.edvax.de (port-92-195-64-166.dynamic.qsc.de [92.195.64.166]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mx02.qsc.de (Postfix) with ESMTPS id A827E2764C; Wed, 25 Jun 2014 18:56:27 +0200 (CEST) Received: from r56.edvax.de (localhost [127.0.0.1]) by r56.edvax.de (8.14.5/8.14.5) with SMTP id s5PGuRxj004290; Wed, 25 Jun 2014 18:56:27 +0200 (CEST) (envelope-from freebsd@edvax.de) Date: Wed, 25 Jun 2014 18:56:27 +0200 From: Polytropon To: ddddd dddd Subject: Re: Language in FreeBSD Message-Id: <20140625185627.95b5e0a0.freebsd@edvax.de> In-Reply-To: References: <20140616135108.40d4ac41@kalimero.tijl.coosemans.org> <20140618045740.df8739e7.freebsd@edvax.de> Reply-To: Polytropon Organization: EDVAX X-Mailer: Sylpheed 3.1.1 (GTK+ 2.24.5; i386-portbld-freebsd8.2) Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Cc: "freebsd-questions@freebsd.org" X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 25 Jun 2014 16:56:36 -0000 On Wed, 25 Jun 2014 18:39:18 +0200, ddddd dddd wrote: > Both accents and extra letters now work in sh, csh and vi, > but not in ed and cdcontrol, I also see the "=A3" isn't working > in ttyv, but unless someone has a quick solution for those > problems, I won't care about that for now.=20 Probably the interactive mode of cdcontrol uses a different input method than the shells. > The translation of FreeBSD itself to Norwegian is started it > seems, but it looks like it's still over 99% in English. Yes, the OS messages and program outputs are not "internationalized", because there's hardly a need for that. On the other hand, many GUI components are "multi-language" for decades. > However, this means all new programs I install from ports or > packages who are translated, like Firefox, will be in Norwegian, > right? No. Especially Firefox and Thunderbird require you to manually add a language pack (firefox-i18n) and a language switcher extension or plugin, if I remember correctly, and it has to be done on a per-user basis interactively (read: "hand-holding"). If you install the language packs for KDE (kde-i18n) or Gnome or Xfce, the correspoding programs will honor the login.conf setting and show localized messages. For some programs, there is no language support, so they will always display english messages. But those which are part of "the big desktop environments" usually will. > Also, when I type locale, I can see some of the values are > inside quotes for some reason (it's not written like that in > the .login_conf file), and some are not, the values with quotes > don't set the variables, like $LC_TIME. This seems to be the correct behaviour: % locale LANG=3D LC_CTYPE=3D"en_US.ISO8859-1" LC_COLLATE=3D"en_US.ISO8859-1" LC_TIME=3D"en_US.ISO8859-1" LC_NUMERIC=3D"en_US.ISO8859-1" LC_MONETARY=3D"en_US.ISO8859-1" LC_MESSAGES=3Den_US.ISO8859-1 LC_ALL=3Den_US.ISO8859-1 This reflects my settings: Program messages and related things in English, but input in German. > But $LANG and $LC_ALL work, so it's probably no problem there. LC_ALL has precedence over other LC_* settings, and LANG will be used when no LC_* setting is present, if I remember correctly. There are other environmental variables such as MM_CHARSET that can affect program behaviour. --=20 Polytropon Magdeburg, Germany Happy FreeBSD user since 4.0 Andra moi ennepe, Mousa, ...