* Comment by default Alias directive for tinymce in Apache configuration
file (Closes: #476162).
+ * Allow to preseed language value (Closes: #476803).
- -- Vincent Bernat <bernat@luffy.cx> Tue, 15 Apr 2008 08:20:47 +0200
+ -- Vincent Bernat <bernat@luffy.cx> Sat, 19 Apr 2008 16:50:28 +0200
roundcube (0.1.1-1) unstable; urgency=low
if [ ! "$oldchoices" ] || [ "$instd_langs" != "$oldchoices" ]; then
db_subst roundcube/language languages $instd_langs
db_fset roundcube/language seen false
- # Try to guess the locale
- locale=$(echo $LANG | sed 's/[@\.].*//')
- if [ -d /usr/share/roundcube/program/localization/$locale ]; then
+ # Firs try to get the current choice in case of preseeding
+ db_get roundcube/language || true
+ locale="$RET"
+ if [ -n $locale -a -d /usr/share/roundcube/program/localization/$locale ]; then
db_set roundcube/language $locale
else
- locale=$(echo $locale | sed 's/_.*//')
- if [ -d /usr/share/roundcube/program/localization/$locale ]; then
- db_set roundcube/language $locale
- else
- db_set roundcube/language en_US
- fi
+ # Try to guess the locale
+ locale=$(echo $LANG | sed 's/[@\.].*//')
+ if [ -d /usr/share/roundcube/program/localization/$locale ]; then
+ db_set roundcube/language $locale
+ else
+ locale=$(echo $locale | sed 's/_.*//')
+ if [ -d /usr/share/roundcube/program/localization/$locale ]; then
+ db_set roundcube/language $locale
+ else
+ db_set roundcube/language en_US
+ fi
+ fi
fi
fi
# Ask the question