7.4. Language

When the live system boots there are three process which concerns language: the locale generation, setting the keyboard layout for the console and setting the keyboard layout for X. To define the locale that should be generated, use the locale parameter to the --bootappend-live option of lh_config, e.g.:

lh_config --bootappend-live "locale=sv_SE.utf8"

Both the console and X keyboard configuration depends on the keyb parameter of the --bootappend-liveoption. Valid options for X keyboard layouts can be found in /etc/X11/xkb/base.xml. To find the value (the two characters) corresponding to a language try searching for the english name of the nation where the language is spoken, e.g:

$ grep -i sweden -C3 /etc/X11/xkb/base.xml | grep name
	<name>se</name>

To get the locale files for swedish generated and a swedish keyboard layout in X use:

lh_config --bootappend-live "locale=sv_SE.utf8 keyb=se"

A list of the valid values of the keyboards for the console can be figured with the following command:

for i in `find /usr/share/keymaps/ -iname "*kmap.gz"`; do basename $i | head -c -9; echo; done | sort | less 

To make the console keyboard use a swedish layout use

lh_config --bootappend-live "locale=sv_SE.utf8 keyb=se-latin1"