installer: Sort keyboard layouts according to language and translations.
commit9015e63996156dfaafecef182d20128f268c2719
authorLudovic Courtès <ludo@gnu.org>
Wed, 17 Apr 2019 13:16:08 +0000 (17 15:16 +0200)
committerLudovic Courtès <ludo@gnu.org>
Wed, 17 Apr 2019 13:16:08 +0000 (17 15:16 +0200)
tree1ef81411a38628189ecc99f1418458f592663b99
parent818595a974a3fc9caa7edd8a4f19d5485c91caba
installer: Sort keyboard layouts according to language and translations.

Previously, we would always (1) put English first, and (2) sort the
other layouts based on their English description.  This fixes both
issues.

* gnu/installer/newt/keymap.scm (sort-layouts)[layout<?]: New procedure.
[preferred]: New variable.
Partition according to both the 'name' and 'synopsis' fields.  Sort both
the main layouts and the other layouts according to 'layout<?'.
gnu/installer/newt/keymap.scm