Forums

Skip to content

Advanced search
  • Quick links
    • Unanswered topics
    • Active topics
    • Search
  • FAQ
  • Login
  • Register
  • Board index Assistance Desktop Environments
  • Search

[Solved] How to set language

Problems with GUI applications? Questions about X, KDE, Gnome, Fluxbox, etc.? Come on in. NOTE: For multimedia, go up one forum
Post Reply
Advanced search
8 posts • Page 1 of 1
Author
Message
conoscenza
Tux's lil' helper
Tux's lil' helper
Posts: 105
Joined: Sun Dec 25, 2011 9:31 am
Location: Spinazzola (bt) | Brescia | Parma

[Solved] How to set language

  • Quote

Post by conoscenza » Thu Apr 05, 2012 9:36 am

Hi guys,
I've a problem. I can't set my language on gentoo with XFCE.

This is my locale.gen:
localhost ~ # cat /etc/locale.gen
# /etc/locale.gen: list all of the locales you want to have on your system
#
# The format of each line:
# <locale> <charmap>
#
# Where <locale> is a locale located in /usr/share/i18n/locales/ and
# where <charmap> is a charmap located in /usr/share/i18n/charmaps/.
#
# All blank lines and lines starting with # are ignored.
#
# For the default list of supported combinations, see the file:
# /usr/share/i18n/SUPPORTED
#
# Whenever glibc is emerged, the locales listed here will be automatically
# rebuilt for you. After updating this file, you can simply run `locale-gen`
# yourself instead of re-emerging glibc.

#en_US ISO-8859-1
#en_US.UTF-8 UTF-8
#ja_JP.EUC-JP EUC-JP
#ja_JP.UTF-8 UTF-8
#ja_JP EUC-JP
#en_HK ISO-8859-1
#en_PH ISO-8859-1
#de_DE ISO-8859-1
#de_DE@euro ISO-8859-15
#es_MX ISO-8859-1
#fa_IR UTF-8
#fr_FR ISO-8859-1
#fr_FR@euro ISO-8859-15
#it_IT ISO-8859-1
it_IT.UTF-8 UTF-8
but If I run:
locale-gen
my gui is in english language!

I would set it in italian language...

thank you
Last edited by conoscenza on Thu Apr 05, 2012 10:03 pm, edited 1 time in total.
Top
xaviermiller
Bodhisattva
Bodhisattva
User avatar
Posts: 8738
Joined: Fri Jul 23, 2004 6:49 pm
Location: ~Brussels - Belgique
Contact:
Contact xaviermiller
Website

  • Quote

Post by xaviermiller » Thu Apr 05, 2012 10:42 am

http://www.gentoo.org/doc/it/guide-localization.xml
Kind regards,
Xavier Miller
Top
GES
Tux's lil' helper
Tux's lil' helper
User avatar
Posts: 108
Joined: Sun Jun 12, 2005 8:41 am
Location: Budapest, Hungary

  • Quote

Post by GES » Thu Apr 05, 2012 10:42 am

http://www.gentoo.org/doc/en/guide-loca ... #doc_chap3
Top
conoscenza
Tux's lil' helper
Tux's lil' helper
Posts: 105
Joined: Sun Dec 25, 2011 9:31 am
Location: Spinazzola (bt) | Brescia | Parma

  • Quote

Post by conoscenza » Thu Apr 05, 2012 6:01 pm

I read doc, but I can't set it in italian.

Anyway I've a question:
my cat /etc/env.d/02locale is:
LC_CTYPE=it_IT.UTF-8
I must put also:
LANG="it_IT.UTF-8"
LC_COLLATE="C"
and after run:
env-update && source /etc/profile
and:
source ~/.bashrc
for my user account?


In the /etc/make.conf I've added:
LINGUAS="it"

and, from root:
localhost ~ # locale
LANG=
LC_CTYPE=it_IT.UTF-8
LC_NUMERIC="POSIX"
LC_TIME="POSIX"
LC_COLLATE="POSIX"
LC_MONETARY="POSIX"
LC_MESSAGES="POSIX"
LC_PAPER="POSIX"
LC_NAME="POSIX"
LC_ADDRESS="POSIX"
LC_TELEPHONE="POSIX"
LC_MEASUREMENT="POSIX"
LC_IDENTIFICATION="POSIX"
LC_ALL=
localhost ~ # locale -a
C
POSIX
it_IT.utf8
from user:
unknow@localhost ~/Desktop $ locale
LANG=
LC_CTYPE=it_IT.UTF-8
LC_NUMERIC="POSIX"
LC_TIME="POSIX"
LC_COLLATE="POSIX"
LC_MONETARY="POSIX"
LC_MESSAGES="POSIX"
LC_PAPER="POSIX"
LC_NAME="POSIX"
LC_ADDRESS="POSIX"
LC_TELEPHONE="POSIX"
LC_MEASUREMENT="POSIX"
LC_IDENTIFICATION="POSIX"
LC_ALL=
unknow@localhost ~/Desktop $ locale -a
C
POSIX
it_IT.utf8

I've tried to run:
export LANG="it_IT.UTF-8"
and after?
Top
Helmering
n00b
n00b
User avatar
Posts: 69
Joined: Tue Dec 13, 2011 11:44 am
Location: Italy

  • Quote

Post by Helmering » Thu Apr 05, 2012 9:49 pm

What's the output under a terminal, not within xfce but after CTL-ALT-F1 for instance

After login try

Code: Select all

~ $ man man
The reported manpage is english or italian?

If in italian, locale is OK, settings should be changed within xfce (No clue regarding xfce).

And after:
In the /etc/make.conf I've added:
LINGUAS="it"
you need to

Code: Select all

emerge -uavtDN world
Most likely that's the issue!

Ralf
Last edited by Helmering on Thu Apr 05, 2012 10:14 pm, edited 2 times in total.
Top
conoscenza
Tux's lil' helper
Tux's lil' helper
Posts: 105
Joined: Sun Dec 25, 2011 9:31 am
Location: Spinazzola (bt) | Brescia | Parma

  • Quote

Post by conoscenza » Thu Apr 05, 2012 10:02 pm

Guys I resolved!

I done:
echo "LANG="it_IT.UTF-8"" >> /etc/env.d/02locale
echo "LC_COLLATE="C"" >> /etc/env.d/02locale
env-update && source /etc/profile
and:
source ~/.bashrc
this last from user account.

I restarted X11 and my layout is in italian! (I don't understand why export LANG="..." does not well)

Anyway:
which is the difference beetwen:
emerge -DNu world
and
emerge -avtDN @world
?
Top
Helmering
n00b
n00b
User avatar
Posts: 69
Joined: Tue Dec 13, 2011 11:44 am
Location: Italy

  • Quote

Post by Helmering » Thu Apr 05, 2012 10:13 pm

conoscenza wrote: Anyway:
which is the difference beetwen:
emerge -DNu world
and
emerge -avtDN @world
?
Fine that's working.
You are right regarding -u=update, what we want. Corrected in my post.

Ralf
Top
conoscenza
Tux's lil' helper
Tux's lil' helper
Posts: 105
Joined: Sun Dec 25, 2011 9:31 am
Location: Spinazzola (bt) | Brescia | Parma

  • Quote

Post by conoscenza » Thu Apr 05, 2012 11:42 pm

ok!

thanks to all!
Top
Post Reply

8 posts • Page 1 of 1

Return to “Desktop Environments”

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

 

 

magic