Skip to content

Translate script using zenity for linux

skypce edited this page Apr 16, 2018 · 1 revision

Translate script using zenity for linux.

https://github.com/skypce/translating-from-any-language-using-translate-shell-script

Installation

Ubuntu:

sudo apt-get install python-pip
sudo pip install ansi2html
sudo apt-get install xdotool xsel xclip zenity
wget https://raw.githubusercontent.com/soimort/translate-shell/gh-pages/trans
chmod +x trans
chmod +x englishtospanish
chmod +x spanishtoenglish
sudo mv trans /usr/local/bin
sudo mv englishtospanish /usr/local/bin
sudo mv spanishtoenglish /usr/local/bin
Go to system settings -> Keyboard -> Shortcuts -> Add a custom shortcut and assign a key to it.

Usage example

Select a piece of text and apply the shortcut that you have assigned to script for translate the selected text. By default translator is set to deepL engine, you can modify script and change it.

Release History

  • 0.1
    • First Release.

Meta

César R. Cid Méndez – @YourTwitterskypce@gmail.com Credits to https://github.com/soimort/translate-shell by his awesome translation script. Distributed under the GPL license. See LICENSE for more information.

https://github.com/skypce/secure-passwords-script