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.
 
 
 

20 lines
527 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. fulllang=$(expr "$LANG" : '\(.*\)\.')
  9. for locale in $@; do
  10. if ( [ -n "$LANG" ] && [ "$LANG" = "$locale" ] ) || \
  11. ( [ -n "$fulllang" ] && [ "$fulllang" = "$locale" ] ) || \
  12. ( [ -n "$baselang" ] && [ "$baselang" = "$locale" ] ); then
  13. exit 0 # install without display
  14. fi
  15. done
  16. exit 1 # do not display
  17. else
  18. exit 1
  19. fi