Linux Screen Text Translator
1. Install `GoldenDict`
```
sudo apt-get install goldendict
```
2. Install `translate-shell`
https://github.com/soimort/translate-shell#option-1-direct-download
3. add `Google Source` as `Program`
* open `GoldenDict`, chose `Edit`, then click `Dictionaries`, `Programs`, `Add`
* add following
```
trans -e google -s en -t zh -show-original y -show-original-phonetics n -show-translation y -no-ansi -show-translation-phonetics n -show-prompt-message n -show-languages n -show-original-dictionary n -show-dictionary n -show-alternatives n "%GDWORD%"
```
4. Enable `Scan Popup`
Click `Edit`, `Preferences`, `Scan Popup`
> you may want to show popup only when you press `shift` key
5. Enjoy it!
Force quit and restart
___
https://gist.github.com/yingshaoxo/3a3fa44bcbe59e764d828817b0f3d2fa
```
sudo apt-get install goldendict
```
2. Install `translate-shell`
https://github.com/soimort/translate-shell#option-1-direct-download
3. add `Google Source` as `Program`
* open `GoldenDict`, chose `Edit`, then click `Dictionaries`, `Programs`, `Add`
* add following
```
trans -e google -s en -t zh -show-original y -show-original-phonetics n -show-translation y -no-ansi -show-translation-phonetics n -show-prompt-message n -show-languages n -show-original-dictionary n -show-dictionary n -show-alternatives n "%GDWORD%"
```
4. Enable `Scan Popup`
Click `Edit`, `Preferences`, `Scan Popup`
> you may want to show popup only when you press `shift` key
5. Enjoy it!
Force quit and restart
___
https://gist.github.com/yingshaoxo/3a3fa44bcbe59e764d828817b0f3d2fa