in the script "14locales"
the valid language is set after the sentence "really_export" and the
corresponding language to "en_US.UTF-8" is "en_US"
diff -Naur initrd-110-7-orig.txt/scripts/live-bottom/14locales initrd.txt/scripts/live-bottom/14locales
--- initrd-110-7-orig.txt/scripts/live-bottom/14locales 2007-11-19 10:58:26.000000000 +0100
+++ initrd.txt/scripts/live-bottom/14locales 2007-11-19 12:20:23.000000000 +0100
@@ -79,11 +79,20 @@
LANG=$(grep "^${locale}" /root/usr/share/i18n/SUPPORTED | grep UTF-8 | sed -e 's, .*,,' -e q)
+ if [ -z "${LANG}" ]
+ then
+ log_warning_message "Locale ${locale} is unsupported."
+ locale="en_US.UTF-8"
+ LANG="en_US"
+ fi
+
+ really_export LANG
+
language="${LANG%%.UTF-8*}"
if [ -d /root/etc/default/kdm.d/ ]
then
-cat > /root/etc/default/kdm.d/live-autologin << EOF
+cat >> /root/etc/default/kdm.d/live-autologin << EOF
LANGUAGE=${language}
EOF
@@ -93,15 +102,6 @@
/root/etc/kde3/kdm/kdmrc
fi
- if [ -z "${LANG}" ]
- then
- log_warning_message "Locale ${locale} is unsupported."
- locale="en_US.UTF-8"
- LANG="${locale}"
- fi
-
- really_export LANG
-
printf 'LANG=%s\n' "${LANG}" > "${grep_file}"
printf '%s UTF-8\n' "${LANG}" > /root/etc/locale.gen
chroot /root /usr/sbin/locale-gen
_______________________________________________
debian-live-devel mailing list
[email protected]
http://lists.alioth.debian.org/mailman/listinfo/debian-live-devel