Skip to content

Script that uses zenity for translate any selected text using translate-shell script.

Notifications You must be signed in to change notification settings

skypce/translating-from-any-language-using-translate-shell-script

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Translate from any language to specified language.

Script that uses shell-translation script for translate from any language to specicied language.

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

About

Script that uses zenity for translate any selected text using translate-shell script.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages