我已经下载了这个包,但是当我试图打开它时,我收到了这条消息:
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.
Run Code Online (Sandbox Code Playgroud)
最近我制作了一个超级简单的脚本,它打开一个新的浏览器选项卡,其中谷歌翻译页面显示了 Ubuntu 中任何应用程序上当前突出显示的文本的信息。
它可以用作替代品。使用它的一种方法是将命令链接到键盘快捷键;然后,每当您按下该键时,都会自动打开一个新选项卡。
我采用这种方法是因为我经常不仅要寻找翻译,还要寻找发音。
此外,您可能想了解translate-shell
一下,它是一个与许多翻译引擎接口的命令行实用程序。
Google 桌面翻译器是一个 Java 应用程序,如果安装了 Java,则可以在 Ubuntu 上运行。您下载的文件显然是为了从 Windows 安装和解压缩而设计的,或者(请参阅 Javier Rivera 的评论)可能是另一个第三方 Windows 程序。两者都不能在 Ubuntu 中工作。
通过以下链接直接从 Google 下载相应的 .zip 文件:
http://code.google.com/p/google-translate-desktop/downloads/list
解压文件,打开终端,cd
到您的安装目录并运行
java -jar google-translate-desktop-0.52.jar
现在应该打开程序窗口:
不幸的是在0.52版本中这个窗口没有装饰并且不能移动,但是有完整的翻译功能。对于退出或程序设置,GNOME 面板中会生成一个状态图标。Windows 装饰仅出现在测试版中,其功能略有减少。
如果您没有使用 Ubuntu 的经验,或者对从外部源安装任何内容感到不舒服,您可以考虑使用Google 的 Web 前端进行翻译。