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.
 
 
 

18 lines
424 B

  1. #!/bin/sh
  2. # Hide all language tasks, and select any that match the current LANG
  3. # setting for installation.
  4. if [ "$NEW_INSTALL" ]; then
  5. set -e
  6. shift 1
  7. baselang=$(expr "$LANG" : '\(.*\)_')
  8. for locale in $@; do
  9. if ( [ -n "$LANG" ] && [ "$LANG" = "$locale" ] ) || \
  10. ( [ -n "$baselang" ] && [ "$baselang" = "$locale" ] ); then
  11. exit 0 # install without display
  12. fi
  13. done
  14. exit 1 # do not display
  15. else
  16. exit 1
  17. fi