Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/bin/bash
- #set -x
- btitle_us="Create Shift"
- btitle_da="Opret Vagt"
- # language, da or us (see ini files in schemas/ dir)
- # the language text is defined in the ini files
- lang=da
- title_us="Select shift type to create or chose 'custom' for a custom shift."
- title_da="Vælg vagt type eller vælg 'custom' for personaliseret vagt type."
- dstr=""
- declare -a week
- if [[ "$lang" == "da" ]]; then
- title=$title_da
- btitle=$title_da
- else
- title=$title_us
- btitle=$btitle_us
- fi
- for i in *.ini;do
- dstr="$dstr \"$i\""
- . ./$i
- if [[ "$lang" == "da" ]]; then
- dstr="$dstr \"$desc_da\""
- else
- dstr="$dstr \"$desc_us\""
- fi
- done
- echo dialog --backtitle "\"$btitle\"" --menu "\"$title\"" 20 60 20 "${dstr}"
- sleep 3
- dialog --backtitle "\"$btitle\"" --menu "\"$title\"" 20 60 20 "${dstr}"
Add Comment
Please, Sign In to add comment