项目作者: ugnelis

项目描述 :
Translate words and sentences instantly in desktop environment.
高级语言: C++
项目地址: git://github.com/ugnelis/instant-translator.git
创建时间: 2018-03-02T13:42:36Z
项目社区:https://github.com/ugnelis/instant-translator

开源协议:

下载


instant-translator

Build Status
Coverage Status

Translate words and sentences instantly. Program uses APIs of various translators.

What Does the App Solve?

Context

Currently, I live in the country whose language I only know the basics.

Problem

Most of the things are in local language. So, it is necessary to adapt quickly by searching for the meanings of the words or the sentences in various applications (WEB based, desktop based).

Solution to the Problem

Desktop application that is able to translate the content of web pages and dekstop-based applications in the app by clicking on the desired button.

Screenshot

Screenshot

Supported APIs

How to Use?

Add an API Key

First of all, you need to get API key for desired API. Then it can be added in Settings dialog (in menu File->Settings)

Configuration File

Configuration file can be found in:

  • In Linux: $HOME/.config/instant_translator/instant_translator.ini
  • In Windows: %APPDATA%\instant_translator\instant_translator.ini

Configuration file example:

  1. [General]
  2. default_api=google
  3. [google]
  4. key=API_KEY
  5. text_type=text
  6. source=lt
  7. target=en
  8. [microsoft]
  9. key=API_KEY
  10. text_type=plain
  11. source=lt
  12. target=en
  13. [temp]
  14. key=API_KEY
  15. text_type=text
  16. source=de
  17. target=lt

Turn On Logs

In this project gflags library isn’t used. That is why environment variable GLOG_logtostderr has to be set in order to see logs.

  1. GLOG_logtostderr=1 ./instant_translator

Translate by Pressing the Keyboard

Currently, it’s made that when clipboard (copy or cut operation) is changed then the app translates the text.

Minimum Software Requirements

  • A desktop operating system that supports Qt.
  • Qt 5.3+
  • gcc 4.8+