lesslinux.org Development Blog

Just another WordPress weblog

Archiv für August, 2015

Automatic language detection

Friday, August 7th, 2015

I just added automatic langauge detection, kind of small magic before an internet connection exists.

How does it work? Currently it searches for the last recently used NTUSER.DAT and reads the registry key “Control Panel\International\LocaleName” from there. Of course this requires a windows installation to be present. But since this feature is targeted at some commercial derivates of LessLinux that are sold as rescue systems in various European countries, probably 95% of computers where LessLinux is booted have a windows partition.

If you are booting LessLinux on a machine without windows you might specify

xlocale=de_DE.UTF-8

to skip the selection and predefine a certain locale. The old

lang=de

only works for a limited subset of languages (German, English, Spanish, French, Polish, Russian, Italian, Netherlands).