Date: Tue, 30 Oct 2007 23:26:20 +0300 From: Ruslan Ermilov <ru@freebsd.org> To: Marc Fonvieille <blackend@freebsd.org> Cc: doc@freebsd.org, Gabor Kovesdan <gabor@freebsd.org> Subject: Re: localized man pages Message-ID: <20071030202620.GA23715@team.vega.ru> In-Reply-To: <20071027065754.GA1015@gothic.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>
next in thread | previous in thread | raw e-mail | index | archive | help
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. Cheers, -- Ruslan Ermilov ru@FreeBSD.org FreeBSD committer
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20071030202620.GA23715>