/usr/share/ltsp/plugins/ltsp-build-client/Ubuntu/025-locales is in ltsp-server 5.4.2-6+deb7u1.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 | case $MODE in
commandline)
add_option "locale" "`eval_gettext "set the default locale"`" "advanced" "true"
;;
configure)
if [ -n "$option_locale_value" ]; then
LOCALE="$option_locale_value"
fi
;;
install)
if [ -z "$LOCALE" ]; then
LOCALE="$LANG"
fi
# locale-gen can't handle LANG.utf8 locales, it needs LANG.UTF-8
if [ "$LOCALE" != "${LOCALE%utf8}" ]; then
LOCALE="${LOCALE%utf8}UTF-8"
fi
if [ "$LOCALE" = "C" ]; then
chroot $ROOT locale-gen en_GB
else
chroot $ROOT locale-gen $LOCALE
fi
if [ "$LOCALE" = "C" ] && [ -f /etc/default/locale ]; then
cp /etc/default/locale $ROOT/etc/default/
else
echo "LANG=$LOCALE" >> $ROOT/etc/default/locale
fi
export LANG="$LOCALE"
for f in /etc/default/console-setup /etc/default/keyboard; do
if [ -f "$f" ]; then
cp "$f" "$ROOT/$f"
fi
done
;;
esac
|