/omegat-textra-plugin

OmegaT plugin to use TexTra(R) powered by NICT

Primary LanguageJavaGNU General Public License v3.0GPL-3.0

NICT TexTra Machine Translation API plugin for OmegaT

This is an implementation of OmegaT plugin which support NICT TexTra Machine Translation API.

Install

Please download zip file from Github release. You can get jar file from zip distribution. OmegaT plugin should be placed in $HOME/.omegat/plugin or C:\Program Files\OmegaT\plugin depending on your operating system.

Configuration

You can enable the plugin using Options > Preferences... > Machine Translation to check Textra by NICT on. After enables configurations, it is nessesary to configure TexTra username, API key and secret on a dialog shown when pushing Configure button. These information can be obtained from a link shown on the dialog. After configured, suggestions will apear in the Machine Translation pane automatically.

TexTra Terms and API key

You need to agree NICT TexTra Service terms and get an account (username, api key and api secret) to use this plugin with OmegaT. The terms show at https://mt-auto-minhon-mlt.ucri.jgn-x.jp/content/policy/

TexTra TLS certification

NICT TexTra uses Starfield G2 certificate for their https communication. Java8 does not includes its root certificate as trusted one. You may need to import its certification as trusted one from Java application.

To download certification, please go to; https://certs.secureserver.net/repository/ and download sfroot-g2.crt

then import a cert, for example on Mac:

sudo keytool -importcert -trustcacerts -file sfroot-g2.crt -keystore /Library/Java/JavaVirtualMachines/jdk1.8.0_121.jdk/Contents/Home/jre/lib/security/cacerts -alias starfield-g2 -storepass changeit

Please check it carefully with sha256 footprint on the site and keytool's notification.

On Ubuntu/Mint, please check your certs directory where exists starfield G2 certificate as /etc/ssl/certs/Starfield_Root_Certificate_Authority_-_G2.crt then manually run

sudo update-ca-certificates

License

This project is distributed under the GNU general public license version 3 or later.