You are not logged in.

#1 2016-09-10 17:06:58

Shimoda
Member
Registered: 2016-09-10
Posts: 12

Missing languages in gnome

Hi,
I'm trying to change the system language from Gnome settings, but under Region & Language I find only English.
I can set the input to Italian but not the Language.
I can't find wich package I must download to intall the languages.

Thank you

http://imgh.us/language.png

Mod note: Converted img to url. See the CoC regarding acceptable image sizes -- WorMzy

Last edited by WorMzy (2016-09-10 18:14:27)

Offline

#2 2016-09-10 18:02:32

loafer
Member
From: the pub
Registered: 2009-04-14
Posts: 1,772

Re: Missing languages in gnome

Have you generated the relevant locale yet?

https://wiki.archlinux.org/index.php/Locale


All men have stood for freedom...
For freedom is the man that will turn the world upside down.
Gerrard Winstanley.

Offline

#3 2016-09-10 18:04:58

prometheus069
Member
Registered: 2016-07-26
Posts: 26

Re: Missing languages in gnome


sad){ neutral:& };:
lol these smileys nowadays...

Offline

#4 2016-09-10 23:58:17

Shimoda
Member
Registered: 2016-09-10
Posts: 12

Re: Missing languages in gnome

loafer wrote:

Have you generated the relevant locale yet?

https://wiki.archlinux.org/index.php/Locale

Yes

Offline

#5 2016-09-10 23:58:53

Shimoda
Member
Registered: 2016-09-10
Posts: 12

Re: Missing languages in gnome

prometheus069 wrote:

No one solved the problem.
Install languages button is not present in Arch Gnome

Offline

#6 2016-09-11 01:31:26

ooo
Member
Registered: 2013-04-10
Posts: 1,638

Re: Missing languages in gnome

Shimoda wrote:
loafer wrote:

Have you generated the relevant locale yet?

https://wiki.archlinux.org/index.php/Locale

Yes

You should be able to switch language to any locale that you have generated.

$ locale -a

lists all locales available on your system.
Make sure your preferred locale is listed on the output.

Offline

#7 2016-09-11 18:05:13

Shimoda
Member
Registered: 2016-09-10
Posts: 12

Re: Missing languages in gnome

$ locale -a
C
en_US.utf8
it_IT.utf8
POSIX

Offline

#8 2016-09-11 20:34:23

ooo
Member
Registered: 2013-04-10
Posts: 1,638

Re: Missing languages in gnome

That's odd.. Gnome doesn't seem to be aware of any of your locales (en_US would be displayed "English (United States)" in gnome settings), and only fallback English is available.

Have you checked journalctl for any errors that could be related?
You could also start gnome-control-center from terminal, try to switch the language again and see if there are any errors on terminal output.

Offline

#9 2016-09-11 21:29:46

Shimoda
Member
Registered: 2016-09-10
Posts: 12

Re: Missing languages in gnome

Thank you for your answer...

ooo wrote:

That's odd.. Gnome doesn't seem to be aware of any of your locales (en_US would be displayed "English (United States)" in gnome settings), and only fallback English is available.

Have you checked journalctl for any errors that could be related?

Just done. No relevant errors found.

You could also start gnome-control-center from terminal, try to switch the language again and see if there are any errors on terminal output.

Done. No errors.

Offline

#10 2016-09-12 15:47:27

Shimoda
Member
Registered: 2016-09-10
Posts: 12

Re: Missing languages in gnome

Similar problem on a fresh intallation in VMWare. This time even English US is missing.
All keyboard layouts present.

EDIT: This time i forgot(?) to run locale-gen ^_^

Last edited by Shimoda (2016-09-12 16:33:14)

Offline

#11 2017-11-25 15:44:19

Cirelli94
Member
Registered: 2016-12-13
Posts: 37

Re: Missing languages in gnome

I Shimoda, I have the same problem, with italian.
my locale -a output is:

locale -a
C
en_GB.utf8
italian
it_IT
it_IT.iso88591
it_IT.utf8
POSIX

How did you solved this problem?
The interesting part is... GDM is in italian to me!

Last edited by Cirelli94 (2017-11-25 15:45:15)

Offline

#12 2017-11-25 15:49:01

Shimoda
Member
Registered: 2016-09-10
Posts: 12

Re: Missing languages in gnome

Hi Cirelli94 :-)

I don't remember... arch was an experiment, I use Gentoo...

Anyway... did you ran locale-gen?

Offline

#13 2017-11-25 16:15:29

Cirelli94
Member
Registered: 2016-12-13
Posts: 37

Re: Missing languages in gnome

Gentoo, uoo.. you have gone to the dark side of the force...
Yes I did, but still no luck with me. However English is fine, is more a little things I can't fix that make me crazy, I'll keep english...

Offline

#14 2017-11-26 00:51:35

cfr
Member
From: Cymru
Registered: 2011-11-27
Posts: 7,132

Re: Missing languages in gnome

I don't think there's a general link between generating a local and setting a language preference in a DE. At least, not in KDE. There, I can choose from a large range of languages. But not one is my default locale.

What is available seems to depend more on the language support installed for the DE itself. Often you need to install separate language packs for DEs/applications.

However, I can't work out what these might be for GNOME.

Last edited by cfr (2017-11-26 00:59:18)


CLI Paste | How To Ask Questions

Arch Linux | x86_64 | GPT | EFI boot | refind | stub loader | systemd | LVM2 on LUKS
Lenovo x270 | Intel(R) Core(TM) i5-7200U CPU @ 2.50GHz | Intel Wireless 8265/8275 | US keyboard w/ Euro | 512G NVMe INTEL SSDPEKKF512G7L

Offline

#15 2017-11-26 12:45:32

ooo
Member
Registered: 2013-04-10
Posts: 1,638

Re: Missing languages in gnome

cfr wrote:

I don't think there's a general link between generating a local and setting a language preference in a DE. At least, not in KDE.

There's a direct link between locale settings and language preference. Language is set with LANG variable, and applications pick localized strings according to that. I don't see why KDE applications would work any different, although I've never used that DE.

Gnome's own language settings also work by setting the LANG variable for the session. Also, the languages that are available in gnome settings, are determined by available locales.

cfr wrote:

What is available seems to depend more on the language support installed for the DE itself. Often you need to install separate language packs for DEs/applications.

There are no separate language packs for gnome. Each application/package includes localization for every language it supports.

Offline

#16 2017-11-26 14:38:37

cfr
Member
From: Cymru
Registered: 2011-11-27
Posts: 7,132

Re: Missing languages in gnome

ooo wrote:
cfr wrote:

I don't think there's a general link between generating a local and setting a language preference in a DE. At least, not in KDE.

There's a direct link between locale settings and language preference. Language is set with LANG variable, and applications pick localized strings according to that. I don't see why KDE applications would work any different, although I've never used that DE.

Oh. I thought the issue was language settings and not only locale. In KDE, these are separate. The 'region' setting corresponds to LANG, while the language setting corresponds to LANGUAGE. The options for the former depend on generated locales, I think. The options for the latter definitely do not. In my case, LANG and LANGUAGE are set to different languages because the language specified for my locale is not available as a language in KDE.

If the language settings set LANG, does something else set LANGUAGE? Or is LANGUAGE KDE-specific? In general, it seems useful to me to be able to specify different options in cases where KDE doesn't support a language, but the system and applications may do so. In my case, I tend to get a mixed-language interface, which is preferable to no support at all for my preferred locale. On the other hand, last time I checked, GNOME seemed to offer more comprehensive support for internationalisation than KDE, so perhaps this is less needed there.


CLI Paste | How To Ask Questions

Arch Linux | x86_64 | GPT | EFI boot | refind | stub loader | systemd | LVM2 on LUKS
Lenovo x270 | Intel(R) Core(TM) i5-7200U CPU @ 2.50GHz | Intel Wireless 8265/8275 | US keyboard w/ Euro | 512G NVMe INTEL SSDPEKKF512G7L

Offline

#17 2017-11-27 00:20:52

ooo
Member
Registered: 2013-04-10
Posts: 1,638

Re: Missing languages in gnome

cfr wrote:

If the language settings set LANG, does something else set LANGUAGE? Or is LANGUAGE KDE-specific?

I'm guessing LANGUAGE is KDE specific, or at least it's not being used with Gnome.

In Gnome's Region & Language, there are separate settings for "Language" and "Formats". The regional options available for both settings are determined by what locales are available on the system.

The "Language" setting seems to set LANG and some LC_* variables, and "Formats" some other LC_* variables. For example I've set language to US English, and formats to United Kingdom, and this is my output for locale:

$ locale
LANG=en_US.UTF-8
LC_CTYPE="en_US.UTF-8"
LC_NUMERIC=en_GB.UTF-8
LC_TIME=en_GB.UTF-8
LC_COLLATE="en_US.UTF-8"
LC_MONETARY=en_GB.UTF-8
LC_MESSAGES="en_US.UTF-8"
LC_PAPER=en_GB.UTF-8
LC_NAME="en_US.UTF-8"
LC_ADDRESS="en_US.UTF-8"
LC_TELEPHONE="en_US.UTF-8"
LC_MEASUREMENT=en_GB.UTF-8
LC_IDENTIFICATION="en_US.UTF-8"
LC_ALL=

I also checked my environment variables, but there's no LANGUAGE in env output.

Offline

#18 2017-11-27 00:57:52

cfr
Member
From: Cymru
Registered: 2011-11-27
Posts: 7,132

Re: Missing languages in gnome

For comparison:

$ locale
LANG=cy_GB.UTF-8
LC_CTYPE="cy_GB.UTF-8"
LC_NUMERIC="cy_GB.UTF-8"
LC_TIME="cy_GB.UTF-8"
LC_COLLATE=C
LC_MONETARY="cy_GB.UTF-8"
LC_MESSAGES="cy_GB.UTF-8"
LC_PAPER="cy_GB.UTF-8"
LC_NAME="cy_GB.UTF-8"
LC_ADDRESS="cy_GB.UTF-8"
LC_TELEPHONE="cy_GB.UTF-8"
LC_MEASUREMENT="cy_GB.UTF-8"
LC_IDENTIFICATION="cy_GB.UTF-8"
LC_ALL=

$ printenv | grep LANG
LANG=cy_GB.UTF-8
LANGUAGE=en_GB

CLI Paste | How To Ask Questions

Arch Linux | x86_64 | GPT | EFI boot | refind | stub loader | systemd | LVM2 on LUKS
Lenovo x270 | Intel(R) Core(TM) i5-7200U CPU @ 2.50GHz | Intel Wireless 8265/8275 | US keyboard w/ Euro | 512G NVMe INTEL SSDPEKKF512G7L

Offline

#19 2017-12-01 20:43:20

Cirelli94
Member
Registered: 2016-12-13
Posts: 37

Re: Missing languages in gnome

Mmm. So what I'm doing wrong is still a mistery.
If I run locale-gen I generate:

sudo locale-gen           
Generating locales...
  it_IT.UTF-8... done
  it_IT.ISO-8859-1... done
  en_GB.UTF-8... done
Generation complete.

So it's ok. Now I set my locale to:

LANG=it_IT.UTF-8
LC_CTYPE="it_IT.UTF-8"
LC_NUMERIC="it_IT.UTF-8"
LC_TIME="it_IT.UTF-8"
LC_COLLATE=C
LC_MONETARY="it_IT.UTF-8"
LC_MESSAGES="it_IT.UTF-8"
LC_PAPER="it_IT.UTF-8"
LC_NAME="it_IT.UTF-8"
LC_ADDRESS="it_IT.UTF-8"
LC_TELEPHONE="it_IT.UTF-8"
LC_MEASUREMENT="it_IT.UTF-8"
LC_IDENTIFICATION="it_IT.UTF-8"
LC_ALL=

... And now Gnome recognize italian in settings... gonna logging out and in...

edit: nothing changed!
See image!

edit2:
is this useful?

echo $LANG      
it_IT.UTF-8

edit3:
I find out after reboot my /etc/locale.conf  becomed:

LANG=it_IT.UTF-8
LC_ALL=

even if before I added all variables as you have!!!

Last edited by Cirelli94 (2017-12-01 20:56:18)

Offline

#20 2017-12-01 23:20:16

cfr
Member
From: Cymru
Registered: 2011-11-27
Posts: 7,132

Re: Missing languages in gnome

I don't think /etc/locale.conf is expected to include the full list. For example, I have

LANG=cy_GB.UTF-8
LANGUAGE=cy_GB:cy:en_GB:en
LC_COLLATE=C

but locale returns

LANG=cy_GB.UTF-8
LC_CTYPE="cy_GB.UTF-8"
LC_NUMERIC="cy_GB.UTF-8"
LC_TIME="cy_GB.UTF-8"
LC_COLLATE=C
LC_MONETARY="cy_GB.UTF-8"
LC_MESSAGES="cy_GB.UTF-8"
LC_PAPER="cy_GB.UTF-8"
LC_NAME="cy_GB.UTF-8"
LC_ADDRESS="cy_GB.UTF-8"
LC_TELEPHONE="cy_GB.UTF-8"
LC_MEASUREMENT="cy_GB.UTF-8"
LC_IDENTIFICATION="cy_GB.UTF-8"
LC_ALL=

CLI Paste | How To Ask Questions

Arch Linux | x86_64 | GPT | EFI boot | refind | stub loader | systemd | LVM2 on LUKS
Lenovo x270 | Intel(R) Core(TM) i5-7200U CPU @ 2.50GHz | Intel Wireless 8265/8275 | US keyboard w/ Euro | 512G NVMe INTEL SSDPEKKF512G7L

Offline

#21 2017-12-02 08:43:37

ooo
Member
Registered: 2013-04-10
Posts: 1,638

Re: Missing languages in gnome

With gnome you don't need to set everything in locale.conf. Gnome sets locale settings according to what you set in control center.

Your shell appears to be in italian, so langage should be set properly. Are the localized strings installed in /usr/share/locale/it/LC_MESSAGES/ as they should?

EDIT. On second though it appears as only the date and time was localized to it_*, but language wasn't, as it still says "Activities" in upper left corner.

You could try removing the ISO-8859-1 locale, in case it somehow messed something up. You're supposed to use utf8 with gnome anyway.

Last edited by ooo (2017-12-02 08:51:07)

Offline

Board footer

Powered by FluxBB