Skip to content

Instantly share code, notes, and snippets.

@petrohs
Last active May 24, 2020 23:07
Show Gist options
  • Save petrohs/fe75237e1af9fe688a3dcd1621e1003a to your computer and use it in GitHub Desktop.
Save petrohs/fe75237e1af9fe688a3dcd1621e1003a to your computer and use it in GitHub Desktop.
transl¦ traductor de google desde zenity
#!/bin/bash
cad=`zenity \
--title="Trans" \
--forms \
--add-entry=idioma \
--add-entry=cadena \
--text="A traducir"`
idio=`echo $cad | cut -d\| -f1`
trad=`echo $cad | cut -d\| -f2-`
torify trans -no-theme -no-ansi -t ${idio} "${trad}" | \
zenity --title="Trans" --text-info
if [ $? -eq 1 ]
then
$0
fi
exit 0;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment