Need help with google-translate-for-goldendict?
Click the “chat” button below for chat support from the developer who created it, or find similar developers for support.

About the developer

xinebf
177 Stars 39 Forks GNU General Public License v3.0 69 Commits 9 Opened issues

Description

Add Google translate to GoldenDict

Services available

!
?

Need anything else?

Contributors list

No Data

google-translate-for-goldendict

Add Google translate for GoldenDict

GoldenDict 是一个非常好用的词典工具, 却不能整句或整段的翻译, 时常需要借助 Google translate 对于将 Google 翻译加到 GoldenDict 是一个很好的方法 φ(゜▽゜*)♪

screenshot

使用方法:

需要 python 3.7+:

pip3 install google-translate-for-goldendict

GoldenDict - 编辑 - 字典 - 字典来源 - 程式

类型:

Html

名称:

Google Translate

命令行:

python -m googletranslate zh-CN %GDWORD%

图示:

H:\PathTo\google_translate.png

Tips

默认设置不能使用的可以尝试将

http_host
设为:
translate.google.cn
.
python -m googletranslate zh-CN %GDWORD% -s "translate.google.cn"

类型可以设为

Html
纯文本
.

其中:

Html
对应
-r "html"
.
纯文本
对应
-r "plain"
positional arguments:
  target          target language (eg: zh-CN)
  query           query string

optional arguments: -h, --help show this help message and exit -s HOST host name (default: translate.google.com) -p PROXY proxy server (eg: 127.0.0.1:1080) -a ALTERNATIVE alternative language (default: en) -r TYPE result type (default: html) -k TKK tkk -m show synonyms -d show definitions -e show examples

We use cookies. If you continue to browse the site, you agree to the use of cookies. For more information on our use of cookies please see our Privacy Policy.