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 Uncompress the files, open a terminal, cd to your installation directory and run 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. Ctrl+Win+C to translate your writing in your editing app, be it a document, an email, or a. Select any text and press: Ctrl+F9 to translate your reading in its original context, such as an article or a white paper. ![]() 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 Translate what youre reading or writing on the fly, without pausing or switching context. 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
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |