If you're not experienced on your Ubuntu or feel uncomfortable to install anything from external sources you may consider to use Google's Web-frontend for translation instead. Windows decoration is present in the beta version only that has a slightly reduced functionality. For quitting or for program settings a status icon is generated in the GNOME panel. Unfortunately in version 0.52 this window has no decoration and cannot be moved, but there is full translation functionality. Java -jar google-translate-desktop-0.52.jar Google has many special features to help you find exactly what youre looking for. Uncompress the files, open a terminal, cd to your installation directory and run Search the worlds information, including webpages, images, videos and more. zip file directly from Google with this link: Both will not work in Ubuntu.ĭownload the appropriate. The file you downloaded obviously is designed to install and uncompress from Windows or (see Javier Rivera's comment) may be another third party Windows program. Google Desktop Translator is a Java application that runs on Ubuntu if Java was installed. On Ubuntu, install it using the following command: sudo apt-get install xclip Notify-send -icon=info "$text" "$translate"įor this to work, make sure xclip is installed on your system. Google Translate collects the following: Location. Notify-send -icon=info "$(xsel -o)" "$(wget -U "Mozilla/5.0" -qO - "**tl=en**&dt=t&q=$(xsel -o | sed "s///g")" | sed "s/,0]].*//g" | awk -F'"' '')"Įcho "$translate" | xclip -selection clipboard Google Translate has disclosed the following information regarding the collection and usage of your data. Next, copy the script code below: #!/usr/bin/env bash install them using the following command: sudo apt-get install libnotify-bin wget xsel
To be able to use the script, firstly install libnotify-bin (so the script can send desktop notifications), wget (to retrieve the translation from Google) and xsel (which is used to get the currently highlighted text).
Setting up and configuring the 'translate highlighted text' script