installer: Choosing a locale opens the translated manual on tty2.
authorLudovic Courtès <ludo@gnu.org>
Fri, 12 Apr 2019 15:13:26 +0000 (17:13 +0200)
committerLudovic Courtès <ludo@gnu.org>
Fri, 12 Apr 2019 15:56:23 +0000 (17:56 +0200)
commitc7dc604253631588c659c1022256af98ec9262af
treedc20b5022928f4e3f59405696315952444821b64
parent126d4c12ce18a35a0d971778133f05b7c6ad81b3
installer: Choosing a locale opens the translated manual on tty2.

Suggested by Florian Pelz.

* gnu/system/install.scm (%installation-node-names): New variable.
(log-to-info): Expect the chosen locale as an argument.  Compute the
language, Info file name, and node name.  Install the locale.
(documentation-shepherd-service): Add 'locale' parameter to the 'start'
action and honor it.  Set GUIX_LOCPATH and TERM as environment variables
for the process.
* gnu/installer.scm (apply-locale): Use (gnu services herd).  Call
'stop-service' and 'start-service' with the chosen locale.
gnu/installer.scm
gnu/system/install.scm