Giter Site home page Giter Site logo

yoyicue / omegat-tencent-plugin Goto Github PK

View Code? Open in Web Editor NEW
36.0 4.0 15.0 116 KB

This is a plugin to allow OmegaT to source machine translations from Tencent Cloud.

Home Page: http://fanyi.qq.com/

License: GNU General Public License v3.0

Java 100.00%
omegat machine-translation tencent-cloud

omegat-tencent-plugin's Introduction

OmegaT Tencent Translate plugin

This is a plugin to allow OmegaT to source machine translations from Tencent Cloud

The functionality provided by this plugin is built into OmegaT 4.1.0 and later. Please uninstall the plugin if you are using this version or later.

Usage

Before run, Log in to Tencent Cloud API Key Console, create a secretId & scretKey or use an existing secretId & scretKey.

  1. Download the ZIP from releases and place it into one of the OmegaT plugins folders. OmegaT plugin should be placed in C:\Program Files\OmegaT\plugins(Windows),~/Library/Preferences/OmegaT/plugins/(Mac OS X) or $HOME/.omegat/plugins(Linux/UNIX), depending on your operating systems.

  2. In OmegaT, configure your secretId & scretKey in Machine Translation Preferences.

  3. In OmegaT, enable Options > Machine Translate > Tencent Translate. Translations will appear in the Machine Translation pane.

Building

  1. From the top level of the distribution run ./gradlew build.

  2. From the build/libs/ folder, copy omegat-tencent-plugin-*.jar to one of the OmegaT plugin folders.

License

This project is distributed under the GNU General Public License, v3.

This project makes use of the following components:

omegat-tencent-plugin's People

Contributors

ovear avatar yoyicue avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

omegat-tencent-plugin's Issues

gradle error while building

When building in Git bash window, got following prompt:

Gradle now uses separate output directories for each JVM language, but this build assumes a single directory for all classes from a source set. This behaviour has been deprecated and is scheduled to be removed in Gradle 5.0

Upper-case target language code "EN" is not recognized by tencent translate api, error code-2002

I tried the plugin in omegaT. Error code is returned if the target language for project is set to "EN", and the same error code is returned twice if the target language is set to "EN-US". "EN" and "EN-US" are the default options in omegat project properties. However, Tencent uses lower-case letters to identify languages. The plugin works when I changed the target language manually to "en". Maybe the plugin can auto convert language code to lower case letters?

-2002 | 不支持的目标语言 (language not supported)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.