Last active
May 24, 2020 23:07
-
-
Save petrohs/fe75237e1af9fe688a3dcd1621e1003a to your computer and use it in GitHub Desktop.
transl¦ traductor de google desde zenity
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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