View previous topic :: View next topic |
Author |
Message |
pipep n00b
Joined: 15 Oct 2017 Posts: 2
|
Posted: Sat Feb 17, 2018 5:36 am Post subject: Language/locale mixed up in Gnome [solved] |
|
|
I use Gnome as Desktop Environment, and I have a problem with the language/locale settings.
My entire system is in Italian, but some parts of Gnome are in English (Control center and terminal).
Here is a screenshot: https://imgur.com/a/7qDXj
My settings are:
Code: | $ cat /etc/portage/make.conf
LINGUAS="it"
L10N="it" |
Code: | $ cat /etc/locale.conf
LANG=it_CH.UTF-8 |
Code: | $ cat /etc/locale.gen
en_US ISO-8859-1
en_US.UTF-8 UTF-8
it_CH ISO-8859-1
it_CH.UTF-8 UTF-8 |
Code: | $ locale -a
C
en_US
en_US.iso88591
en_US.utf8
it_CH
it_CH.iso88591
it_CH.utf8
POSIX |
Code: | $ locale
LANG=it_CH.UTF-8
LC_CTYPE="it_CH.UTF-8"
LC_NUMERIC=it_CH.UTF-8
LC_TIME=it_CH.UTF-8
LC_COLLATE="it_CH.UTF-8"
LC_MONETARY=it_CH.UTF-8
LC_MESSAGES="it_CH.UTF-8"
LC_PAPER=it_CH.UTF-8
LC_NAME="it_CH.UTF-8"
LC_ADDRESS="it_CH.UTF-8"
LC_TELEPHONE="it_CH.UTF-8"
LC_MEASUREMENT=it_CH.UTF-8
LC_IDENTIFICATION="it_CH.UTF-8"
LC_ALL= |
Code: | $ localectl
System Locale: LANG=it_CH.UTF-8
VC Keymap: sg
X11 Layout: ch |
Code: | $ eselect locale list
Available targets for the LANG variable:
[1] C
[2] en_US
[3] en_US.iso88591
[4] en_US.utf8
[5] it_CH
[6] it_CH.iso88591
[7] it_CH.utf8
[8] POSIX
[9] it_CH.UTF-8 *
[ ] (free form) |
How can I get a full italian Gnome?
Thank you!
Last edited by pipep on Sat Feb 17, 2018 7:14 pm; edited 1 time in total |
|
Back to top |
|
|
Fitzcarraldo Advocate
Joined: 30 Aug 2008 Posts: 2038 Location: United Kingdom
|
Posted: Sat Feb 17, 2018 9:52 am Post subject: |
|
|
pipep wrote: | Code: | $ localectl
System Locale: LANG=it_CH.UTF-8
VC Keymap: sg
X11 Layout: ch |
|
As an aside, I'm curious why you have configured your installation to have a VC keymap 'sg' with a Swiss German X11 layout. Normally the country code 'SG' is used for Singapore. In the case of Linux virtual consoles does 'sg' refer to 'Swiss German' instead?
Code: | # awk '/\!\ layout/{flag=1;next}/\!\ variant/{flag=0}flag' /usr/share/X11/xkb/rules/xorg.lst | grep " ch"
ch German (Switzerland) |
Anyway, your problem piqued my curiosity, so I have installed the GNOME edition of Sabayon Linux (a binary derivative of Gentoo with its own overlay) in a virtual machine to investigate. I opted to use Sabayon Linux because it is quick to install and similar to Gentoo. I chose the British English locale so that I could reconfigure it to Swiss Italian from the command line post installation, as I would do in Gentoo proper. First I will list the original situation:
Code: | # grep LINGUAS /etc/portage/make.conf
LINGUAS="en en_US af ar az bg bn br bs ca cs cy da de el en_GB eo es et eu fa fi fr fy ga gl he hi hr hu is it ja kk km ko lt lv mk mn ms nb nds nl nl_NL nn pa pl pt pt_BR ro ru rw se sk sl sr sr@Latn ss sv ta tg tr uk uz vi zh_CN zh_TW es_AR es_ES fy_NL ga_IE gu gu_IN nb_NO nn_NO pt_PT sv_SE zh" |
Code: | # grep L10N /etc/portage/make.conf
L10N="en af ar az bg bn br bs ca cs cy da de el en-GB eo es et eu fa fi fr fy ga gl he hi hr hu is it ja kk km ko lt lv mk mn ms nb nds nl nn pa pl pt pt-BR ro ru rw se sk sl sr sr-Latn ss sv ta tg tr uk uz vi zh-CN zh-TW es-AR es-ES fy ga gu nb nn pt-PT sv zh" |
Notice above that LINGUAS has "it" but not "it_CH", and L10N has "it" but not "it-CH", so your configuration of LINGUAS and L10N is effectively the same as mine as far as Italian is concerned. I assume you built all the GNOME packages and any l10n packages you need (e.g. libreoffice-l10n) with LINGUAS and L10N already set to "it".
Code: | # cat /etc/locale.conf
LANG=en_GB.UTF-8 |
Code: | # cat /etc/locale.gen
en_US.UTF-8 UTF-8
en_US ISO-8859-1
en_GB.UTF-8 UTF-8
en_GB ISO-8859-1 |
Code: | # locale -a
C
en_GB
en_GB.iso88591
en_GB.utf8
en_US
en_US.iso88591
en_US.utf8
POSIX |
Code: | # locale
LANG=en_GB.UTF-8
LC_CTYPE="en_GB.UTF-8"
LC_NUMERIC="en_GB.UTF-8"
LC_TIME="en_GB.UTF-8"
LC_COLLATE="en_GB.UTF-8"
LC_MONETARY="en_GB.UTF-8"
LC_MESSAGES="en_GB.UTF-8"
LC_PAPER="en_GB.UTF-8"
LC_NAME="en_GB.UTF-8"
LC_ADDRESS="en_GB.UTF-8"
LC_TELEPHONE="en_GB.UTF-8"
LC_MEASUREMENT="en_GB.UTF-8"
LC_IDENTIFICATION="en_GB.UTF-8"
LC_ALL= |
Code: | # localectl
System Locale: LANG=en_GB.UTF-8
VC Keymap: uk
X11 Layout: gb |
Code: | # eselect locale list
Available targets for the LANG variable:
[1] C
[2] en_GB
[3] en_GB.iso88591
[4] en_GB.utf8
[5] en_US
[6] en_US.iso88591
[7] en_US.utf8
[8] POSIX
[9] en_GB.UTF-8 *
[ ] (free form) |
Now I will list the procedure I used to switch to Swiss Italian:
Code: | # timedatectl list-timezones | grep Zurich
Europe/Zurich |
Code: | # timedatectl set-timezone Europe/Zurich |
Code: | # localectl list-locales
en_GB
en_GB.iso88591
en_GB.utf8
en_US
en_US.iso88591
en_US.utf8
# nano /etc/locale.gen
# cat /etc/locale.gen
en_US.UTF-8 UTF-8
en_US ISO-8859-1
en_GB.UTF-8 UTF-8
en_GB ISO-8859-1
it_CH.UTF-8 UTF-8
it_CH ISO-8859-1 |
Code: | # locale-gen
* Generating 6 locales (this might take a while) with 1 jobs
* (1/6) Generating en_GB.ISO-8859-1 ... [ ok ]
* (2/6) Generating en_GB.UTF-8 ... [ ok ]
* (3/6) Generating en_US.ISO-8859-1 ... [ ok ]
* (4/6) Generating en_US.UTF-8 ... [ ok ]
* (5/6) Generating it_CH.ISO-8859-1 ... [ ok ]
* (6/6) Generating it_CH.UTF-8 ... [ ok ]
* Generation complete
* Adding locales to archive ... [ ok ] |
Code: | # localectl list-locales
en_GB
en_GB.iso88591
en_GB.utf8
en_US
en_US.iso88591
en_US.utf8
it_CH
it_CH.iso88591
it_CH.utf8 |
Code: | # localectl set-locale LANG=it_CH.UTF-8
# localectl list-keymaps | grep it
it
it-ibm
it2
mac-it
# localectl list-keymaps | grep sg
sg
sg-latin1
sg-latin1-lk450
# localectl set-keymap sg |
Code: | # localectl list-x11-keymap-layouts | grep ch
ch
# localectl set-x11-keymap ch |
Code: | # env-update && source /etc/profile
>>> Regenerating /etc/ld.so.cache... |
I then edited /etc/default/grub and changed the locale and keymap entries in GRUB_CMDLINE_LINUX to be locale=it_CH and keymap=sg and after I regenerated grub.cfg:
Code: | # nano /etc/default/grub
# grub2-mkconfig -o /boot/grub/grub.cfg
Generazione file di configurazione GRUB...
Trovato sfondo: /boot/grub/default-splash.png
Trovata immagine linux: /boot/kernel-genkernel-x86_64-4.14.0-sabayon
Trovata immagine initrd: /boot/initramfs-genkernel-x86_64-4.14.0-sabayon
fatto
# reboot |
Code: | # eselect locale list
Available targets for the LANG variable:
[1] C
[2] en_GB
[3] en_GB.iso88591
[4] en_GB.utf8
[5] en_US
[6] en_US.iso88591
[7] en_US.utf8
[8] it_CH
[9] it_CH.iso88591
[10] it_CH.utf8
[11] POSIX
[12] it_CH.UTF-8 *
[ ] (free form) |
Code: | # localectl status
System Locale: LANG=it_CH.UTF-8
VC Keymap: sg
X11 Layout: ch |
The text that you circled in red in your screenshot is now in Italian in my installation.
If after rebooting you still don't see all the text in GNOME in Italian, I would suggest you try rebuilding the packages:
Code: | # emerge --deep --with-bdeps --newuse @world |
_________________ Clevo W230SS: amd64, VIDEO_CARDS="intel modesetting nvidia".
Compal NBLB2: ~amd64, xf86-video-ati. Dual boot Win 7 Pro 64-bit.
OpenRC systemd-utils[udev] elogind KDE on both.
My blog |
|
Back to top |
|
|
pipep n00b
Joined: 15 Oct 2017 Posts: 2
|
Posted: Sat Feb 17, 2018 7:13 pm Post subject: |
|
|
Thanks for your help.
The problem was due to the fact that probability, a few weeks ago when I installed Gentoo for the first time, I had set L10N and LINGUAS only after installing Gnome.
The command Code: | emerge --deep --with-bdeps --newuse @world | only recompiled some packages in Italian, but not all. For example, gnome-control-center had remained in English.
Today, by running Code: | emerge --oneshot gnome-control-center | gnome-control-center has become Italian.
I then rebuilt all the gnome packages with They were over 800 packages and took 12 hours, but now everything is fine.
P.S .: Yes, 'sg' refers to the Swiss German keyboard layout. |
|
Back to top |
|
|
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|