Dialog conversion well under way.
This commit is contained in:
parent
2fbc54528b
commit
a991814165
@ -91,12 +91,10 @@ initialize_directory()
|
|||||||
fi
|
fi
|
||||||
done
|
done
|
||||||
echo "$(gettext "Select browser for viewing html email:")"
|
echo "$(gettext "Select browser for viewing html email:")"
|
||||||
select i in "${browsers[@]##*/}" ; do
|
browserPath="$(menulist $(for i in "${browsers[@]##*/}" ; do echo "$i";echo "$i";done))"
|
||||||
browserPath="$i"
|
if [ -z "$browserPath" ]; then
|
||||||
if [ -n "$browserPath" ]; then
|
exit 0
|
||||||
break
|
|
||||||
fi
|
fi
|
||||||
done
|
|
||||||
case "${browserPath##*/}" in
|
case "${browserPath##*/}" in
|
||||||
"elinks")
|
"elinks")
|
||||||
echo "text/html; $browserPath -dump -force-html -dump-charset utf-8 -no-numbering %s; nametemplate=%s.html; copiousoutput" > "$muttHome/mailcap"
|
echo "text/html; $browserPath -dump -force-html -dump-charset utf-8 -no-numbering %s; nametemplate=%s.html; copiousoutput" > "$muttHome/mailcap"
|
||||||
@ -157,11 +155,10 @@ initialize_directory()
|
|||||||
fi
|
fi
|
||||||
done
|
done
|
||||||
echo "$gettext "Select editor for email composition:")"
|
echo "$gettext "Select editor for email composition:")"
|
||||||
select i in "${editors[@]##*/}" ; do
|
i="$(menulist $(for i in "${editors[@]##*/}" ; do echo "$i";echo "$i";done))"
|
||||||
if [ -n "$i" ]; then
|
if [ -z "$i" ]; then
|
||||||
break
|
exit 0
|
||||||
fi
|
fi
|
||||||
done
|
|
||||||
echo "set editor=$i" > "$muttHome/muttrc"
|
echo "set editor=$i" > "$muttHome/muttrc"
|
||||||
echo "set text_flowed=yes" >> "$muttHome/muttrc"
|
echo "set text_flowed=yes" >> "$muttHome/muttrc"
|
||||||
# I need to figure out a way to detect and set the language for the next setting.
|
# I need to figure out a way to detect and set the language for the next setting.
|
||||||
@ -416,8 +413,9 @@ check_dependancies
|
|||||||
initialize_directory
|
initialize_directory
|
||||||
# Let's make a mainmenu variable to hold all the options for the select loop.
|
# Let's make a mainmenu variable to hold all the options for the select loop.
|
||||||
mainmenu=("$(gettext "Add Email Address")" "$(gettext "Configure GPG")" "$(gettext "New Contact")" "$(gettext "Exit")")
|
mainmenu=("$(gettext "Add Email Address")" "$(gettext "Configure GPG")" "$(gettext "New Contact")" "$(gettext "Exit")")
|
||||||
echo "$(gettext "Main menu:")"
|
while : ; do
|
||||||
select i in "${mainmenu[@]}" ; do
|
i="$(IFS=$'\n';menulist $(for i in "${mainmenu[@]}" ; do echo "$i";echo "$i";done))"
|
||||||
|
[[ -z "$i" ]] && exit 0
|
||||||
functionName="${i,,}"
|
functionName="${i,,}"
|
||||||
functionName="${functionName// /_}"
|
functionName="${functionName// /_}"
|
||||||
functionName="${functionName/exit/exit 0}"
|
functionName="${functionName/exit/exit 0}"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user