Skip to content

Commit

Permalink
basic support for languages
Browse files Browse the repository at this point in the history
  • Loading branch information
Wolfgang Baird committed Apr 11, 2015
1 parent 1b6f90d commit 22b9bfe
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion main.sh
Original file line number Diff line number Diff line change
Expand Up @@ -350,10 +350,16 @@ chk0.default = $login_enabled"

# Directories
scriptDirectory=$(cd "${0%/*}" && echo $PWD)
app_windows="$scriptDirectory"/windows/en
app_directory="$scriptDirectory"
for i in {1..2}; do app_directory=$(dirname "$app_directory"); done

lang=$(locale | grep LANG | cut -d\" -f2 | cut -d_ -f1)
if [[ -e "$scriptDirectory"/windows/"$lang" ]]; then
app_windows="$scriptDirectory"/windows/"$lang"
else
app_windows="$scriptDirectory"/windows/en
fi

# Files
dboot_efi="$scriptDirectory"/boot.efi
helper_1="$app_directory"/Contents/Resources/"dBoot Agent".sh
Expand Down

0 comments on commit 22b9bfe

Please sign in to comment.