localechooser improvements

Bug #1873342 reported by Dimitri John Ledkov
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
subiquity
Fix Committed
Medium
Unassigned

Bug Description

localechooser has ./d-i/source/localechooser/debian/localechooser/usr/share/localechooser/languagelist.data.gz

that file looks like this:

0:C:C:No localization (ASCII)
0:C.UTF-8:C.UTF-8:No localization (UTF-8)
1:ca:Catalan:Català
3:zh_CN:Chinese (Simplified):中文(简体)
3:zh_TW:Chinese (Traditional):中文(繁體)
2:hr:Croatian:Hrvatski
2:cs:Czech:Čeština
2:sq:Albanian:Shqip
4:am:Amharic:አማርኛ

The format is
LEVEL:code:English Name:Localized Name

LEVEL is indicator what consoles can show it
./debian-installer/packages/localechooser/localechooser

language_disaply_level() does detection there

It gives SSH_CLIENT level=4, Framebuffer level 3, if font-switch available level 2, latin1 only for level 1.

If we are on serial, only level 0 is offered.

Revision history for this message
Michael Hudson-Doyle (mwhudson) wrote :

So we should bundle this list into the snap and on start up filter it according to where we are running:

1. we should show level 2 languages only in linux console
2. we should show level 4 i.e. all over ssh
3. not sure for serial, if you're connecting using screen running in gnome-terminal or whatever you can show level 4, if it is a real terminal, level 0, but that seems plenty unlikely these days

Then we should filter this list by the languages we actually have translations for.

Then we should advertise that connecting via ssh gets you more languages.

Revision history for this message
Michael Hudson-Doyle (mwhudson) wrote :

Actually as the translations are in the snap I wonder if we could do the "filtering for languages we have" at snap build time.

Revision history for this message
Michael Hudson-Doyle (mwhudson) wrote :

Should do this for 20.04.1.

Changed in subiquity:
status: New → Triaged
importance: Undecided → Medium
tags: added: id-5e977e8e3284ff4b1556d6db
Revision history for this message
Michael Hudson-Doyle (mwhudson) wrote :
Changed in subiquity:
status: Triaged → In Progress
Changed in subiquity:
status: In Progress → Fix Committed
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

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