Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 1 Nov 2007 11:43:27 +0100
From:      Marc Fonvieille <blackend@freebsd.org>
To:        Ruslan Ermilov <ru@freebsd.org>
Cc:        doc@freebsd.org, Gabor Kovesdan <gabor@freebsd.org>
Subject:   Re: localized man pages
Message-ID:  <20071101104327.GA48658@abigail.blackend.org>
In-Reply-To: <20071030202620.GA23715@team.vega.ru>
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>

next in thread | previous in thread | raw e-mail | index | archive | help
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:
> :
> :       <lang>_<country>.<charset>
> :       <lang>.<charset>
> :       en.<charset>
> :
> : 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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20071101104327.GA48658>