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.
19 lines
527 B
19 lines
527 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" : '\(.*\)_')
|
|
fulllang=$(expr "$LANG" : '\(.*\)\.')
|
|
for locale in $@; do
|
|
if ( [ -n "$LANG" ] && [ "$LANG" = "$locale" ] ) || \
|
|
( [ -n "$fulllang" ] && [ "$fulllang" = "$locale" ] ) || \
|
|
( [ -n "$baselang" ] && [ "$baselang" = "$locale" ] ); then
|
|
exit 0 # install without display
|
|
fi
|
|
done
|
|
exit 1 # do not display
|
|
else
|
|
exit 1
|
|
fi
|
|
|