You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 

17 lines
424 B

#!/bin/sh
# Hide all language tasks, and select any that match the current LANG
# setting for installation.
if [ "$NEW_INSTALL" ]; then
set -e
shift 1
baselang=$(expr "$LANG" : '\(.*\)_')
for locale in $@; do
if ( [ -n "$LANG" ] && [ "$LANG" = "$locale" ] ) || \
( [ -n "$baselang" ] && [ "$baselang" = "$locale" ] ); then
exit 0 # install without display
fi
done
exit 1 # do not display
else
exit 1
fi