detecte locales for the GUI widget; generate locales in chroot

Ubuntu no longer supports aliases via /etc/locales.alias (since
when?) and recommends exporting the exact locale string. Noticed
while looking into issue #68.