Skip to content

Commit ff42a8c

Browse files
author
Tich
committed
Google Translate 1.2
1 parent e30f13d commit ff42a8c

14 files changed

+2250
-1021
lines changed

Diff for: README.md

+9-8
Original file line numberDiff line numberDiff line change
@@ -6,12 +6,12 @@ A set of special tools to cope with my daily tasks. It's based on [Python 3.6.5]
66

77
All image resources in this repo are from [iconfont](http://www.iconfont.cn).
88

9-
### Words Recorder
10-
11-
[Words Recorder](words-recorder) is an app to record the word that you are unfamiliar with when you do some reading, based on Python, PyQt5 and MySQL.
9+
### Google Translate
10+
[Google Translate](google-translate) is a translation app using [Google translate api](https://github.com/ssut/py-googletrans).
1211

1312
<div align="center">
14-
<img src="images/Words-Recorder.png" alt="Words Recorder" height="350" />
13+
<img src="images/Google-Translate.png" alt="Google Translate English" height="350" />
14+
<img src="images/Google-Translate-zh_CN.png" alt="Google Translate English" height="350" />
1515
</div>
1616

1717
### Bilibili Kit
@@ -22,9 +22,10 @@ All image resources in this repo are from [iconfont](http://www.iconfont.cn).
2222
<img src="images/Bilibili-Kit.png" alt="Bilibili Kit" height="350" />
2323
</div>
2424

25-
### Google Translate
26-
[Google Translate](google-translate) is a translation app using [Google translate api](https://github.com/ssut/py-googletrans).
25+
### Words Recorder
26+
27+
[Words Recorder](words-recorder) is an app to record the word that you are unfamiliar with when you do some reading, based on Python, PyQt5 and MySQL.
2728

2829
<div align="center">
29-
<img src="images/Google-Translate.png" alt="Google Translate" height="350" />
30-
</div>
30+
<img src="images/Words-Recorder.png" alt="Words Recorder" height="350" />
31+
</div>

Diff for: google-translate/README.md

+22-22
Original file line numberDiff line numberDiff line change
@@ -1,50 +1,50 @@
11
## Google Translate
2-
Google Translate App using PyQt5.
2+
Google Translate is a translation app using [Google translate api](https://github.com/ssut/py-googletrans).
33

4-
### 截图
4+
### Screenshot
55
<div align="center">
6-
<img src="images/img-1.png" alt="Screenshot">
6+
<img src="images/Google-Translate.png" alt="Google Translate English" height="350" />
7+
<img src="images/Google-Translate-zh_CN.png" alt="Google Translate English" height="350" />
78
</div>
89

9-
### 背景
10-
在我看论文的时候遇到看不懂的词、句子都是用 [谷歌翻译](https://translate.google.cn) ,然而每次都要 Ctrl+CCtrl+V,还有看 PDF 的时候复制会自带回车还有奇怪的符号,就很麻烦,然后想着为什么不能自己做个小应用使用谷歌翻译的 API 来直接翻译呢?在 Gayhub 上看了下关于谷歌翻译的项目,突然发现了一个 [有趣的项目](https://github.com/ssut/py-googletrans) ,然后就有了这个项目,主要是将英语翻译成中文。
10+
### Background
11+
When I read the thesis, I used [Google Translate](https://translate.google.cn) to translate the words and sentences that I could not understand. But every time I had to Ctrl+C, Ctrl+V. Moreover when copying sentences from a PDF, it will bring a additional enter and a strange symbol. It is very troublesome. Then I wonder why I can't make a app to use the Google Translate API to translate directly. I view the Google Translate project on GitHub and suddenly found an [interesting repo](https://github.com/ssut/py-googletrans).
1112

12-
### 功能介绍
13-
1. 手动输入翻译。在原文对应的文本框中输入想要翻译的英文,然后点击 `翻译` 按钮,或者使用快捷键 Ctrl+Enter
14-
2. 论文模式。使用论文模式需要勾选实时翻译,我这里的实时翻译是监控剪贴板,然后将复制的文字翻译成中文,并且在论文模式下会自动将回车和多个空格替换为一个空格,以及去掉一个特殊的符号 ``
15-
3. 窗口总在前面。勾选此选框会导致窗口一直处于所有应用的最前面。
13+
### Feature
14+
1. Enter the translation manually. Enter the English you want to translate in the 'original' input field, then click the `translate` button, or use the shortcut Ctrl+Enter
15+
2. paper model. To use the paper mode, you need to check the real-time translation. My real-time translation here is to monitor the clipboard, then translate the copied text into Chinese, and automatically replace the additional enter and multiple spaces with a space in the paper mode, and remove one special symbol ``
16+
3. window top. Checking this box will cause the window to remain at the top of all applications.
1617

17-
### 演示
18-
1. 普通模式
18+
### illustration
19+
1. regular mode
1920
<div align="center">
20-
<img src="images/img-2.gif" alt="普通模式">
21+
<img src="../images/Google-Translate-1.gif" alt="regular mode">
2122
</div>
2223

23-
2. 论文模式
24+
2. paper mode
2425
<div align="center">
25-
<img src="images/img-3.gif" alt="论文模式">
26+
<img src="../images/Google-Translate-2.gif" alt="paper mode">
2627
</div>
2728

28-
3. 非论文模式
29+
3. non paper mode
2930
<div align="center">
30-
<img src="images/img-4.gif" alt="非论文模式">
31+
<img src="../images/Google-Translate-3.gif" alt="non paper mode">
3132
</div>
3233

33-
### 安装说明
34+
### Installation
3435
```
3536
>> git clone https://github.com/LewisTian/GoogleTranslateApp.git
3637
>> cd GoogleTranslateApp
3738
>> pip install -r requirement.txt
3839
>> python main.py
3940
```
4041

41-
### 解压使用
42-
除了上面的代码安装,这里提供了一个打包好的压缩包 ,下载解压即可使用,[点我下载](https://github.com/LewisTian/GoogleTranslateApp/releases)
42+
### Download
43+
[click me to download](https://github.com/LewisTian/PyQt5-Tools/releases)
4344

44-
### 参考
45+
### References
4546
- https://github.com/ssut/py-googletrans
4647
- https://blog.csdn.net/killua_hzl/article/details/5288769
4748

4849
### License
49-
GoogleTranslateApp is licensed under the [GNU General Public License v3.0 License](LICENSE).
50-
本项目仅供学习交流和私人使用,禁止用作商业用途。
50+
GNU General Public License v3.0 License

Diff for: google-translate/en.qm

1.37 KB
Binary file not shown.

0 commit comments

Comments
 (0)