You are not logged in.

#1 2006-10-06 17:51:03

Neuro
Member
From: Poland
Registered: 2005-10-12
Posts: 352

locale and man pages

Hi,

How can I force man to display pages in a language different from the one stated in the LANG variable? Commands already speak to me in the language I want, but I can't make the manual pages to do the same. I have all of the following locales generated, restarting Xorg (or shell session) doesn't help.

[root@deck:/root] locale-gen
Generating locales...
  de_DE.UTF-8... done
  de_DE.ISO-8859-1... done
  en_GB.UTF-8... done
  en_GB.ISO-8859-1... done
  pl_PL.UTF-8... done
  pl_PL.ISO-8859-2... done
Generation complete.
[root@deck:/root] locale
LANG=pl_PL.UTF8
LC_CTYPE="pl_PL.UTF8"
LC_NUMERIC="pl_PL.UTF8"
LC_TIME="pl_PL.UTF8"
LC_COLLATE=C
LC_MONETARY="pl_PL.UTF8"
LC_MESSAGES=en_GB.UTF8
LC_PAPER="pl_PL.UTF8"
LC_NAME="pl_PL.UTF8"
LC_ADDRESS="pl_PL.UTF8"
LC_TELEPHONE="pl_PL.UTF8"
LC_MEASUREMENT="pl_PL.UTF8"
LC_IDENTIFICATION="pl_PL.UTF8"
LC_ALL=

Note: I would like to keep pl_PL for LANG because otherwise KDE isn't smart enough to recognise appropriate polish characters.

Offline

#2 2006-10-06 22:01:51

Snowman
Developer/Forum Fellow
From: Montreal, Canada
Registered: 2004-08-20
Posts: 5,212

Re: locale and man pages

I'm not a locale expert but I think that you need a copy of the man-pages in the desired languagues.  That's what I understand from the presence of  the man-pages-* packages in AUR.

Offline

#3 2006-10-06 22:14:55

Romashka
Forum Fellow
Registered: 2005-12-07
Posts: 1,054

Re: locale and man pages

Snowman wrote:

I'm not a locale expert but I think that you need a copy of the man-pages in the desired languagues.  That's what I understand from the presence of  the man-pages-* packages in AUR.

This won't help.
If I understand correctly, Neuro wants to keep pl_PL locale but have en_GB man pages. Am I right? Then you should simply delete /usr/man/pl directory, I suppose.


to live is to die

Offline

#4 2006-10-07 07:21:56

Neuro
Member
From: Poland
Registered: 2005-10-12
Posts: 352

Re: locale and man pages

Romashka wrote:

This won't help.
If I understand correctly, Neuro wants to keep pl_PL locale but have en_GB man pages. Am I right? Then you should simply delete /usr/man/pl directory, I suppose.

Exactly. Deleting the directory works well. However, there is a slight problem with this solution: each time I update a package containing polish manual pages, the directory will get recreated.

Offline

#5 2006-10-07 08:21:55

Romashka
Forum Fellow
Registered: 2005-12-07
Posts: 1,054

Re: locale and man pages

Neuro wrote:

Exactly. Deleting the directory works well. However, there is a slight problem with this solution: each time I update a package containing polish manual pages, the directory will get recreated.

A quick workaround is to put this into /etc/rc.local:

if [ -e /usr/man/pl ]; then
  rm -rf /usr/man/pl
fi

to live is to die

Offline

Board footer

Powered by FluxBB