After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 602965 - Language variants information missing in the language selection list
Language variants information missing in the language selection list
Status: RESOLVED OBSOLETE
Product: gdm
Classification: Core
Component: general
2.29.x
Other Linux
: Normal normal
: ---
Assigned To: GDM maintainers
GDM maintainers
Depends on:
Blocks:
 
 
Reported: 2009-11-25 18:18 UTC by David Planella
Modified: 2011-02-17 18:36 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
Gdm login with missing variant information (156.53 KB, image/png)
2009-11-25 18:18 UTC, David Planella
Details
Now it's getting better... (14.63 KB, image/gif)
2010-12-15 01:54 UTC, Urmas
Details

Description David Planella 2009-11-25 18:18:08 UTC
Created attachment 148466 [details]
Gdm login with missing variant information

(Forwarded from the downstream Ubuntu bug: https://bugs.launchpad.net/ubuntu/+source/gdm/+bug/408474)

In the login screen, the user has the possibility to choose a different language than the one defined as default.

Some languages install variants along with the main language, which can then be selected in that list of languages. Some examples of language variants: ca@valencia, sr@latin, etc.

The 2.26 gdm version showed an indication of the variant in the list, in the form of "<translated language> (<variant information>)". In the current version, the variant information is lost, showing the same two language choices in the list.

The attached screenshot shows this situation. In the old gdm, the two highlighted entries woould have been:

Català
Català (UTF-8@valencia)
Comment 1 Takao Fujiwara 2009-11-26 01:08:21 UTC
FYI, currently the maintainer doesn't want to show the modifier.
https://bugzilla.gnome.org/show_bug.cgi?id=536387#c38
Comment 2 David Planella 2009-11-26 10:20:13 UTC
Thanks for your comment, Takao.

Regarding the modifier, and reading the comment you pointed me to, I just want to make clear that I was not advocating for showing the @ on the UI. I too would rather prefer a more "human" description. In the case of the Valencian variant (ca@valencia), both 'ca' and 'ca@valencia' use the same script, so I think it makes sense to show both entries.

Currently we've got the following identical entries, which make it impossible for users to tell the two locales apart:

Catalan (Spain) <- That's 'ca'
Catalan (Spain) <- That's 'ca@valencia'

A proposal would be to use a different name for the language:

Catalan (Spain)           <- That's 'ca'
Southern Catalan (Spain)  <- That'd be 'ca@valencia'

In any case, it seems to me that there might not be a solution that applies to all "@ locales".

(Also note that I've only used the "Southern Catalan" name by way of an example - if the implementation would end up using an alternative language name, this name should be discussed within the Catalan community)
Comment 3 Takao Fujiwara 2009-11-27 03:11:06 UTC
Currently GDM shows UTF-8 locales only in the language list by default.

My understanding is, currently "ca" locale is not shown in GDM by default since it fails setlocale, export LANG="ca", until you run localedef by manual.
I think currently GDM shows "ca_ES.UTF-8" locale but "ca_ES.UTF-8@valencia" is not shown because setlocale is failed.

So I think you need to create ca_ES.UTF-8@valencia by manual with localedef at first.

Probably your idea would be nice.
The string "Catalan" is extracted by /usr/share/xml/iso-codes/iso_639.xml .
And the translation is extracted by /usr/share/locale/ca/LC_MESSAGES/iso_639.mo .

e.g.
% env LANG=ca_ES.utf8 gettext -d iso_639 "Catalan; Valencian"
català; valencià

The string is shown on GDM.
I think if you want to distinguish the GUI string between ca_ES.utf8 and ca_ES.utf8@valencia, one idea is to deliver iso_639.mo for ca@valencia .

e.g.
msgid "Catalan; Valencian"
msgstr "Català South; Valencià"

# I recommend "C" is first because the name is sorted on the GDM language list.

Then probably I think GDM could be enhanced to show the modifier locale in case the iso translations are different.

So your issue might be iso_codes l10n prior to GDM.
Comment 4 Urmas 2010-12-11 22:10:21 UTC
It is the work of GDM to show locale properly! And it should.

Finally, @variations are GNU extension and have no bearing to ISO 639.

Just provide the separate translations for common variations as @latin or @euro and show other variants unmodified.

For example,

be_BY.UTF-8@latin => "Belorussian (Belarus, Latin script)"

ru_UA.UTF-8@foobar => "Russian (Unkraine, foobar)"
Comment 5 Urmas 2010-12-15 01:54:06 UTC
Created attachment 176440 [details]
Now it's getting better...

CONFIRM it.
FIX it.

DON"T procrustinate.
Comment 6 Takao Fujiwara 2010-12-15 02:48:08 UTC
As I noted in Comment #3, currently I think it's good to fix in iso-codes.
I think that translation fix could resolve your problem.

The maintainer would not like to show the modifiers locales on linux.
https://bugzilla.gnome.org/show_bug.cgi?id=536387#c35

> Finally, @variations are GNU extension and have no bearing to ISO 639.


I don't think it's GNU extension.
http://pubs.opengroup.org/onlinepubs/007908799/xbd/envvar.html
Comment 7 David Planella 2010-12-15 11:27:50 UTC
> I think that translation fix could resolve your problem.

While this is a workaround, it is a bit of a hack.

The iso-codes translations only contain language names, and no indication of the variant.

So in the particular case of variants that use the same script as the main language code, you'd end up with two identical entries in the GDM locale chooser, without being able to know which one is which, unless you translate the name of the language differently in iso-codes, which just feels wrong.
Comment 8 Takao Fujiwara 2010-12-16 02:15:51 UTC
Maybe I think the maintainer concerns the language list is redundant if we just show the variant locales.
It may be good to think another GUI.
e.g.

[Add variant ▶] [ * None]
                [ o Latin (@latin) ]
                [ o Euro (@euro) ]
                [ o Cyrillic (@cyrillic) ]
                [ o Iqtelif (@iqtelif) ]
                [ o Abegede (@abegede) ]
                [ o Devanagari (@devanagari) ]
                [ o Saaho (@saaho) ]

At the moment, you could add modifiers in /var/lib/gdm/Seat1/.gconf/apps/gdm/simple-greeter/%gconf.xml directly or add LC_TIME=be_BY.utf8@latin in $HOME/.profile

However if you think about LC_TIME, I wonder adding %EY or %Oy might resolve the issue besides %y.
I'm a bit busy for GNOME3.
Comment 9 David Planella 2010-12-20 11:09:36 UTC
Hi Takao,

Thanks for your comment. I'm not too sure I understand your proposal, may I ask you to elaborate a bit on it?

Also I cannot really grasp the reference to LC_TIME now.

Thanks!
Comment 10 Takao Fujiwara 2010-12-21 03:27:16 UTC
(In reply to comment #9)
> may I ask you to elaborate a bit on it?

I mean the default enables the "None" toggle button on the additional GUI and it won't add any variants for locales.
If the user choose "Latin" on the GUI, it will add the selected locale with "@latin", e.g. be_BY.utf8@latin .
It's just an idea.

> Also I cannot really grasp the reference to LC_TIME now.

You could refer the man page of date and strftime. You could use the %Y by default but also can use %EY for the alternative format.
Comment 11 Gunnar Hjalmarsson 2011-02-16 11:27:29 UTC
As from the Ubuntu GDM version 2.32.0-0ubuntu7, where the downstream bug was fixed, the list of languages in GDM's language chooser may look like this:

Catalan
Catalan - valencia
English
English (Australia)
English (Canada)
English (New Zeeland)
English (United Kingdom)
English (United States)
German
Swedish

It shows available translations instead of available locales. Since
- Catalan is currently one of the installed languages on my box,
- there is a separate ca@valencia translation, and
- a matching locale is available,
a separate "Catalan - valencia" item is included in the list.

https://launchpad.net/ubuntu/+source/gdm/2.32.0-0ubuntu7
Comment 12 Ray Strode [halfline] 2011-02-17 18:36:42 UTC
We no longer have this selector in GDM (it was moved to within the session) so closing...