home *** CD-ROM | disk | FTP | other *** search
/ Mac Easy 2009 April / MAC_easy_04_2009.iso / Software / FolderGlance.dmg / Components / FolderGlancePrefs.prefPane / Contents / Resources / fix_locale.sh next >
Encoding:
Linux/UNIX/POSIX Shell Script  |  2007-11-05  |  713 b   |  25 lines

  1. #!/bin/bash
  2. # Small script to move the English localization out of the way,
  3. # enabling the Polish localization.
  4.  
  5. echo "Attempting to fix FolderGlance localization"
  6. home=~
  7. tgt="$home/Library/PreferencePanes"
  8. lproj="$tgt/FolderGlancePrefs.prefPane/Contents/Resources/English.lproj"
  9. if [ ! -d "$tgt" ] ; then
  10.     echo "The PreferencePanes folder was not found! Is FolderGlance installed globally?"
  11. elif [ -d "$lproj" ] ; then
  12.     mv "$lproj" "$lproj-backup"
  13.     if [ ! $? -eq 0 ] ; then
  14.         echo "There was an error renaming the English localization."
  15.         exit -1
  16.     else
  17.         echo "The English localization was successfully renamed."
  18.     fi
  19. else
  20.     echo "The English localization already appears to be out of the way."
  21.     exit 0
  22. fi
  23.  
  24. exit 0
  25.