Forums

Skip to content

Advanced search
  • Quick links
    • Unanswered topics
    • Active topics
    • Search
  • FAQ
  • Login
  • Register
  • Board index Assistance Other Things Gentoo
  • Search

[solved] man pages now show in another language!

Still need help with Gentoo, and your question doesn't fit in the above forums? Here is your last bastion of hope.
Post Reply
Advanced search
9 posts • Page 1 of 1
Author
Message
batistuta
Veteran
Veteran
User avatar
Posts: 1384
Joined: Fri Jul 29, 2005 3:54 pm
Location: Aachen

[solved] man pages now show in another language!

  • Quote

Post by batistuta » Sat Nov 25, 2006 6:49 pm

I have my system installed with four different locale:
- English
- Italian
- Spanish
- German

Yes, I do write docs and emails in all four languages so I need them all
But the wierd thing is that now all my man pages show up in Italian. I would like to have them back in English. So my question is, how do you configure the default language for man pages?

the --help option always that you can provide to commands still show up in English, it is just the man pages that don't.
This brings up another quesiton, how do you change the language of bash itself? I don't want to, it's just for curiosity...
thanks
Last edited by batistuta on Mon Nov 27, 2006 8:27 pm, edited 1 time in total.
Top
01mf02
Veteran
Veteran
User avatar
Posts: 1070
Joined: Sun Nov 21, 2004 3:14 pm
Location: Innsbruck, Austria

  • Quote

Post by 01mf02 » Sat Nov 25, 2006 7:27 pm

I have the entry

Code: Select all

sys-apps/man-pages -nls
in my /etc/portage/package.use to get rid of all translations of the official man pages - which means all official man pages are shown in English.

EDIT: Oh, and bash itself is English, and I think you can't change that.
Top
SirYes
Apprentice
Apprentice
User avatar
Posts: 282
Joined: Sun Jan 15, 2006 10:14 am
Location: Lodz, Poland
Contact:
Contact SirYes
Website

Re: man pages now show in another language!!

  • Quote

Post by SirYes » Sat Nov 25, 2006 7:48 pm

batistuta wrote:But the wierd thing is that now all my man pages show up in Italian. I would like to have them back in English. So my question is, how do you configure the default language for man pages?

the --help option always that you can provide to commands still show up in English, it is just the man pages that don't.
This brings up another quesiton, how do you change the language of bash itself? I don't want to, it's just for curiosity...
thanks
Is it possible that changing one of the variables mentioned in the Gentoo Linux Localization Guide can help you?

And out of curiosity, what does:

Code: Select all

$ locale
tell you?

Edit:
I've found that running man this way:

Code: Select all

LC_ALL=en man bash
should display manual pages in English.

So, how about putting

Code: Select all

alias man='LC_ALL=en man'
in your ~/.bashrc ?
My blog: In search for ultimate programming language
Top
batistuta
Veteran
Veteran
User avatar
Posts: 1384
Joined: Fri Jul 29, 2005 3:54 pm
Location: Aachen

  • Quote

Post by batistuta » Sun Nov 26, 2006 2:06 pm

Thanks guys for the suggestions
01mf02 wrote:I have the entry

Code: Select all

sys-apps/man-pages -nls
in my /etc/portage/package.use to get rid of all translations of the official man pages - which means all official man pages are shown in English.
Good tip! I will try that. I really don't care about man pages in anything than English. I understand man pages better in English than in my mother tonge :D

locale outputs

Code: Select all

mafalda ~ # locale
LANG=en_US.utf8
LC_CTYPE="en_US.utf8"
LC_NUMERIC="en_US.utf8"
LC_TIME="en_US.utf8"
LC_COLLATE="en_US.utf8"
LC_MONETARY="en_US.utf8"
LC_MESSAGES="en_US.utf8"
LC_PAPER="en_US.utf8"
LC_NAME="en_US.utf8"
LC_ADDRESS="en_US.utf8"
LC_TELEPHONE="en_US.utf8"
LC_MEASUREMENT="en_US.utf8"
LC_IDENTIFICATION="en_US.utf8"
LC_ALL=en_US.utf8
So everything looks fine

Code: Select all

LC_ALL=en man bash
shows pages in the same language as man bash. Let me explain better:
"man ln" shows man page in italian
"man bash" shows man page in english
"man man cp" shows page in italian
the point is that the language is not alteres with LC_ALL=en
that is,

Code: Select all

LC_ALL=en man cp
is still in italian

My question about changing the language of bash was for example in terms of output messages. I've seen people's gcc output in other languages, and I was wondering how does one do that, just for curiosity

I will try putting that use flag and emerge --newuse world
Thanks
Top
SirYes
Apprentice
Apprentice
User avatar
Posts: 282
Joined: Sun Jan 15, 2006 10:14 am
Location: Lodz, Poland
Contact:
Contact SirYes
Website

  • Quote

Post by SirYes » Sun Nov 26, 2006 5:40 pm

Heck, no!

Code: Select all

mafalda ~ # locale
LANG=en_US.utf8
All should be fine, just FIX YOUR LOCALE SETTING.
"en_US.utf8" is incorrect, it should be "en_US.UTF-8" !

Once I thought the same and I have been corrected by developers :oops: ;)

Edit:
The relevant bug is [bug=113233]#113233[/bug].
The recommended reading is Using UTF-8 with Gentoo.

There are lots of bugs with ".utf8" in comments area.
My blog: In search for ultimate programming language
Top
batistuta
Veteran
Veteran
User avatar
Posts: 1384
Joined: Fri Jul 29, 2005 3:54 pm
Location: Aachen

  • Quote

Post by batistuta » Sun Nov 26, 2006 6:46 pm

but I've thought that you *create* the locale with whichever name you want. For instance

Code: Select all

mafalda # locale -a
C
de_DE
de_DE@euro
de_DE.utf8
en_US
en_US.utf8
es_AR
es_AR.utf8
es_ES
es_ES@euro
es_ES.utf8
it_IT
it_IT@euro
it_IT.utf8
POSIX
So my next question would be: how do I remove locale?
I've found this locale shit really frustrating, docs contradict themselves more than George Bush :lol:
thanks
Top
batistuta
Veteran
Veteran
User avatar
Posts: 1384
Joined: Fri Jul 29, 2005 3:54 pm
Location: Aachen

  • Quote

Post by batistuta » Sun Nov 26, 2006 7:10 pm

I've tried editing my changing the /etc/env.d/02locale file to reflect the UTF-8 rather than utf8, run anv env-update and now locale shows

Code: Select all

mafalda batistuta# locale
LANG=en_US.UTF-8
LC_CTYPE="en_US.UTF-8"
LC_NUMERIC="en_US.UTF-8"
LC_TIME="en_US.UTF-8"
LC_COLLATE="en_US.UTF-8"
LC_MONETARY="en_US.UTF-8"
LC_MESSAGES="en_US.UTF-8"
LC_PAPER="en_US.UTF-8"
LC_NAME="en_US.UTF-8"
LC_ADDRESS="en_US.UTF-8"
LC_TELEPHONE="en_US.UTF-8"
LC_MEASUREMENT="en_US.UTF-8"
LC_IDENTIFICATION="en_US.UTF-8"
LC_ALL=en_US.UTF-8
mafalda batistuta# 
but locale -a still shows the same as before, with utf8. What the hell?
I've also done a locale-gen and it seems to generate the right locales

Code: Select all

mafalda batistuta# locale-gen
 * Generating 13 locales (this might take a while) with 1 jobs
 *  ( 1/13) Generating en_US.ISO-8859-1 ...                               [ ok ]
 *  ( 2/13) Generating en_US.UTF-8 ...                                    [ ok ]
 *  ( 3/13) Generating de_DE.ISO-8859-1 ...                               [ ok ]
 *  ( 4/13) Generating de_DE.ISO-8859-15@euro ...                         [ ok ]
 *  ( 5/13) Generating de_DE.UTF-8 ...                                    [ ok ]
 *  ( 6/13) Generating es_ES.ISO-8859-1 ...                               [ ok ]
 *  ( 7/13) Generating es_ES.ISO-8859-15@euro ...                         [ ok ]
 *  ( 8/13) Generating es_ES.UTF-8 ...                                    [ ok ]
 *  ( 9/13) Generating it_IT.ISO-8859-1 ...                               [ ok ]
 *  (10/13) Generating it_IT.ISO-8859-15@euro ...                         [ ok ]
 *  (11/13) Generating it_IT.UTF-8 ...                                    [ ok ]
 *  (12/13) Generating es_AR.ISO-8859-1 ...                               [ ok ]
 *  (13/13) Generating es_AR.UTF-8 ...                                    [ ok ]
 * Generation complete
mafalda batistuta #    
but locale -a doesn't make any sense
Top
SirYes
Apprentice
Apprentice
User avatar
Posts: 282
Joined: Sun Jan 15, 2006 10:14 am
Location: Lodz, Poland
Contact:
Contact SirYes
Website

  • Quote

Post by SirYes » Sun Nov 26, 2006 8:52 pm

batistuta wrote:I've found this locale shit really frustrating, docs contradict themselves more than George Bush
...
locale -a still shows the same as before, with utf8.
Yeah, I know, it's sad. It really was utf8 once, but it is changed to UTF-8 now in all Linux distributions I know.

I wouldn't bother about the output of "locale -a". If the "en_US.utf8" is its internal representation, so be it. What matters is how one can select a locale of choice. And all the locale settings come from glibc, BTW. Just look at this file to check what locales are supported and could be generated/installed in the system:

Code: Select all

# less /usr/share/i18n/SUPPORTED
Anyway, I was going to ask if your problems with "man" are still there? I re-checked the behavior of man and came to the conclusion that:

Code: Select all

$ LANG=en LC_ALL=en man command
should always do exactly as told: display manual page in English.
My blog: In search for ultimate programming language
Top
batistuta
Veteran
Veteran
User avatar
Posts: 1384
Joined: Fri Jul 29, 2005 3:54 pm
Location: Aachen

  • Quote

Post by batistuta » Mon Nov 27, 2006 8:25 pm

SirYes,

After

Code: Select all

sys-apps/man-pages -nls 
now all the pages show in English. I think I understand a bit better now how this locale work. Really confusing the output of locale -a, and I think this is the reason why many docs contradict each other.
But everything seems to work now. I'll mark as solved.
Thanks a lot for your help!!
Top
Post Reply

9 posts • Page 1 of 1

Return to “Other Things Gentoo”

Jump to
  • Assistance
  • ↳   News & Announcements
  • ↳   Frequently Asked Questions
  • ↳   Installing Gentoo
  • ↳   Multimedia
  • ↳   Desktop Environments
  • ↳   Networking & Security
  • ↳   Kernel & Hardware
  • ↳   Portage & Programming
  • ↳   Gamers & Players
  • ↳   Other Things Gentoo
  • ↳   Unsupported Software
  • Discussion & Documentation
  • ↳   Documentation, Tips & Tricks
  • ↳   Gentoo Chat
  • ↳   Gentoo Forums Feedback
  • ↳   Duplicate Threads
  • International Gentoo Users
  • ↳   中文 (Chinese)
  • ↳   Dutch
  • ↳   Finnish
  • ↳   French
  • ↳   Deutsches Forum (German)
  • ↳   Diskussionsforum
  • ↳   Deutsche Dokumentation
  • ↳   Greek
  • ↳   Forum italiano (Italian)
  • ↳   Forum di discussione italiano
  • ↳   Risorse italiane (documentazione e tools)
  • ↳   Polskie forum (Polish)
  • ↳   Instalacja i sprzęt
  • ↳   Polish OTW
  • ↳   Portuguese
  • ↳   Documentação, Ferramentas e Dicas
  • ↳   Russian
  • ↳   Scandinavian
  • ↳   Spanish
  • ↳   Other Languages
  • Architectures & Platforms
  • ↳   Gentoo on ARM
  • ↳   Gentoo on PPC
  • ↳   Gentoo on Sparc
  • ↳   Gentoo on Alternative Architectures
  • ↳   Gentoo on AMD64
  • ↳   Gentoo for Mac OS X (Portage for Mac OS X)
  • Board index
  • All times are UTC
  • Delete cookies

© 2001–2026 Gentoo Foundation, Inc.

Powered by phpBB® Forum Software © phpBB Limited

Privacy Policy