From owner-freebsd-doc@FreeBSD.ORG Thu Nov 1 10:47:36 2007 Return-Path: Delivered-To: doc@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 213EE16A418; Thu, 1 Nov 2007 10:47:36 +0000 (UTC) (envelope-from marc@blackend.org) Received: from abigail.blackend.org (ns0.blackend.org [82.227.222.164]) by mx1.freebsd.org (Postfix) with ESMTP id 767F613C480; Thu, 1 Nov 2007 10:47:34 +0000 (UTC) (envelope-from marc@blackend.org) Received: from abigail.blackend.org (localhost [127.0.0.1]) by abigail.blackend.org (8.13.4/8.13.3) with ESMTP id lA1AhR0e049551; Thu, 1 Nov 2007 11:43:27 +0100 (CET) (envelope-from marc@abigail.blackend.org) Received: (from marc@localhost) by abigail.blackend.org (8.13.4/8.13.3/Submit) id lA1AhRHq049550; Thu, 1 Nov 2007 11:43:27 +0100 (CET) (envelope-from marc) Date: Thu, 1 Nov 2007 11:43:27 +0100 From: Marc Fonvieille To: Ruslan Ermilov Message-ID: <20071101104327.GA48658@abigail.blackend.org> References: <4721FFC5.9070505@FreeBSD.org> <20071027.003749.76175923.hrs@allbsd.org> <20071026175650.GA1074@gothic.blackend.org> <47226158.4070304@FreeBSD.org> <20071027065754.GA1015@gothic.blackend.org> <20071030202620.GA23715@team.vega.ru> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20071030202620.GA23715@team.vega.ru> X-Useless-Header: blackend.org X-Operating-System: FreeBSD 4.11-STABLE User-Agent: Mutt/1.5.9i Cc: doc@freebsd.org, Gabor Kovesdan Subject: Re: localized man pages X-BeenThere: freebsd-doc@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Documentation project List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 01 Nov 2007 10:47:36 -0000 On Tue, Oct 30, 2007 at 11:26:20PM +0300, Ruslan Ermilov wrote: > On Sat, Oct 27, 2007 at 08:57:54AM +0200, Marc Fonvieille wrote: > > [...] but I now think the problem was > > on this point: our manual page system does not easily allow this > > selection and the fall-back on the en_US version when the manual page is > > not translated. This should also work with ports manual pages. > > > Isn't this easy enough (copied from the man(1) manpage)? > > : By default, man searches for a localized manpage in a set of > : locale subdirectories of each manpath(1) component. > : > : Locale name is taken from the first of three environment vari- > : ables with a nonempty value: LC_ALL, LC_CTYPE, or LANG, in the > : specified order. > : > : If the value could not be determined, or is not a valid locale > : name, then only non-localized manpage will be looked up. > : > : Otherwise, man will search in the following subdirectories, in > : the order of precedence: > : > : _. > : . > : en. > : > : For example, for the ``de_DE.ISO8859-1'' locale, man will > : search in the following subdirectories of the /usr/share/man > : manpath component: > : > : /usr/share/man/de_DE.ISO8859-1 > : /usr/share/man/de.ISO8859-1 > : /usr/share/man/en.ISO8859-1 > : > : Finally, if the search of localized manpage fails, it will be > : looked up in the default /usr/share/man directory. > I'm sure there was something preventing a full-working localized manual pages set. Maybe it was the "-Tlatin1" problem Hiroki mentioned, I'm unable to remember exactly what stopped me. -- Marc