localechooser improvements
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
subiquity |
Fix Committed
|
Medium
|
Unassigned |
Bug Description
localechooser has ./d-i/source/
that file looks like this:
0:C:C:No localization (ASCII)
0:C.UTF-
1:ca:Catalan:Català
3:zh_CN:Chinese (Simplified):中文(简体)
3:zh_TW:Chinese (Traditional)
2:hr:Croatian:
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-
language_
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.
tags: | added: id-5e977e8e3284ff4b1556d6db |
Changed in subiquity: | |
status: | In Progress → Fix Committed |
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.