Improve duplicated language lists

Bug #1350275 reported by David Planella
14
This bug affects 2 people
Affects Status Importance Assigned to Milestone
ubuntu-system-settings (Ubuntu)
Confirmed
Low
Matthew Paul Thomas

Bug Description

Right now on the phone, with a growing list of languages, the selection of a language has become a bit unwieldy.

We're showing individual entries for the combination of one same language and different countries where it's spoken. E.g. rather than having one single entry for Catalan, there are several ones:

- Catalan (Spain)
- Catalan (Andorra)
- Catalan (France)
- Catalan (Italy)

Would it be better to have a way to select a language first, and then a country? This would allow us to have one single entry per language, similarly to what we do on the desktop installer.

Related branches

Revision history for this message
Sebastien Bacher (seb128) wrote :

Thanks, that's a design issue, we are just following what is described on https://wiki.ubuntu.com/LanguageAndText#phone-language

Changed in ubuntu-system-settings (Ubuntu):
importance: Undecided → Low
Revision history for this message
Sebastien Bacher (seb128) wrote :

Matthew, could you review/comment on that one?

Changed in ubuntu-system-settings (Ubuntu):
assignee: nobody → Matthew Paul Thomas (mpt)
Revision history for this message
Matthew Paul Thomas (mpt) wrote :
Revision history for this message
Matthew Paul Thomas (mpt) wrote :

Currently the list includes many languages that, as far as I can tell, do not actually have available translations. For example, it includes 17 varieties of English, when in reality Ubuntu Touch ships with only the three that Launchpad offers for translation -- en_AU, en_CA, and en_GB. <https://launchpad.net/~/+editlanguages> (Plus en@shaw, which I've reported bug 1455917 for.)

I suspect this is because Ubuntu is showing a list of locales rather than actual languages, and many locales share languages. Is that correct? Andreea Pirvu and I are working on the assumption that it is, and that we can separate out the choice of locale into its own step. If you have allowed location detection, possibly the step will be automatic, or at least the default can be based on your location. Either way, that would shorten the list of "languages" from 100 entries to about 50.

Changed in ubuntu-system-settings (Ubuntu):
status: New → Confirmed
Revision history for this message
Matthew Paul Thomas (mpt) wrote :

If we did limit the list to only those languages for which Ubuntu ships translated strings, that would make bug 1455917 more urgent.

Revision history for this message
Gunnar Hjalmarsson (gunnarhj) wrote :

@Matthew: Please note that a list of language options, which represent the available translations, is available via

/usr/share/language-tools/language-options

It has been used for a few years by the applicable desktop GUIs.

I suppose it could be used for Ubuntu Touch as well, provided that the selection of regional formats (certain locale categories) is broken out to a separate UI component.

Revision history for this message
Sebastien Bacher (seb128) wrote :

@Gunnar, thanks for the pointer. Our current list is built from a call to "locale" and some filtering around it, I suggested a small change that make it filter out things without langpack translations but maybe using the script you pointed to would be a better option, I'm going to look at that later (though ideally I would like to avoid calling shell script from the code)

Revision history for this message
Gunnar Hjalmarsson (gunnarhj) wrote :

Yeah, it's a shell script, but when you use "locale -a" you shell out anyway, don't you?

accountsservice's Language property matches one of the values in the language-options list, and could safely be used for grabbing the current value.

I suppose the current list is still needed for the regional formats UI component. accountsservice's FormatsLocale property matches one of those values.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Duplicates of this bug

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.