I've downloaded the package but as I'm trying to open it I get this message:
Archive: /home/agnes/Downloads/ggtranslate.exe
[/home/agnes/Downloads/ggtranslate.exe]
End-of-central-directory signature not found. Either this file is not
a zipfile, or it constitutes one disk of a multi-part archive. In the
latter case the central directory and zipfile comment will be found on
the last disk(s) of this archive.
zipinfo: cannot find zipfile directory in one of /home/agnes/Downloads/ggtranslate.exe or
/home/agnes/Downloads/ggtranslate.exe.zip, and cannot find /home/agnes/Downloads/ggtranslate.exe.ZIP, period.
Recently I've made a super simple script that opens a new browser tab with the google translator page showing information for the currently highlighted text on any app in Ubuntu.
It can be used as an alternative. One way to use it is to link the command to a keyboard shortcut; then, any time you press the key, a new tab will open automatically.
I took this approach because frequently I'm looking not only for the translation but also for the pronunciation as well.
In addition, you might want to check
translate-shell
out, it is a command-line utility that interfaces with many translation engines.Setting up and configuring the 'translate highlighted text' script
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). In Ubuntu, Linux Mint, etc. install them using the following command:
Next, copy the script code below:
and paste it in a new file - let's call it
notitrans
(well, you can call it whatever you want, but that's how I'll refer to it from now on).In the script above, replace
tl=en
with the language into which you want the text to be translated, for instancetl=ru
for Russian,tl=fr
for French and so on.After you're done, save the file in your home directory and make it executable using the following command:
Place the script in your $PATH - for instance, to copy the script to /usr/local/bin/, use the following command:
To be able to use the script, you can assign it a custom keyboard shortcut. Doing this depends on your desktop environment.
On GNOME (and Unity), you can do this by going to System Settings > Keyboard > Shortcuts > Custom Shortcuts, where you'll need to click "+" to add a new keyboard shortcut. Here, enter any name you want for the new custom shortcut and "notitrans" as the command:
And finally, assign a keyboard shortcut to the newly added command by clicking on it and then holding down the keys you want to assign to it. Make sure the keyboard shortcut is not already in use!
Optional: variations of the 'translate highlighted text' script
Display the translation with Zenity (which allows the text to be copied) instead of using desktop notifications:
For this to work, make sure Zenity is installed on your system. On Ubuntu, install it using the following command:
Display the translation in a desktop notification AND automatically copy the translation to the clipboard:
For this to work, make sure xclip is installed on your system. On Ubuntu, install it using the following command:
Google Desktop Translator is a Java application that runs on Ubuntu if Java was installed. 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. Both will not work in Ubuntu.
Download the appropriate .zip file directly from Google with this link:
http://code.google.com/p/google-translate-desktop/downloads/list
Uncompress the files, open a terminal,
cd
to your installation directory and runjava -jar google-translate-desktop-0.52.jar
The program window should now open:
Unfortunately in version 0.52 this window has no decoration and cannot be moved, but there is full translation functionality. For quitting or for program settings a status icon is generated in the GNOME panel. Windows decoration is present in the beta version only that has a slightly reduced functionality.
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.
You tried to run a Windows program. Try this:
google-translate-desktop-x.y
.jar
, and click Properties, then Permissions.EDIT: You may have downloaded windows only freeware. Try downloading this, and following the above instructions after extracting the archive.
you can use Goot(Download). it uses google translator.
Dialect is a translator app that uses Google translate as the backend.
It is available on Flathub
Source: https://github.com/dialect-app/dialect