23 lines
428 B
Bash
23 lines
428 B
Bash
|
#!/bin/bash
|
||
|
PS3='Choix:'
|
||
|
langs=("fr-en" "en-fr" "fr-pt" "pt-fr")
|
||
|
echo
|
||
|
select trad in "${langs[@]}"; do
|
||
|
echo
|
||
|
case $trad in
|
||
|
"fr-en")
|
||
|
trans fr:en "$@";echo "---"
|
||
|
;;
|
||
|
"en-fr")
|
||
|
trans en:fr "$@";echo "---"
|
||
|
;;
|
||
|
"fr-pt")
|
||
|
trans fr:pt "$@";echo "---"
|
||
|
;;
|
||
|
"pt-fr")
|
||
|
trans pt:fr "$@";echo "---"
|
||
|
;;
|
||
|
*) echo "invalid option $REPLY";;
|
||
|
esac
|
||
|
done
|