Skip to content

acll19/transclient

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

transclient

A simple java-based translator which makes use of some translation services exposed on the internet as REST API's. Currently it supports MyMemory and Yandex which are both free.

transclient aims to help people translate large amount of texts (within the boundary of the above services) in a file or directory.

Requirements

transclient is developed using java8 so java8 must be installed on your computer. you can download it from here

Compilation

transclient is compiled with maven. Download maven from here, put it in your environment variables, open a command line, move to transclient root directory and type mvn package. This will generate transclient-1.0.jar under the target directory.

Usage

MyMemory

First Time

If it is the first time you use this service you need to get an apiKey. In a command line tool type java -jar transclient.jar -t mymemory -u YourUserName -p YourPassword -lp en|es [-e EmailAddress], the email address is optional. This will get an apiKey for you. Then enter a valid file or directory path where the text to be translated is. From now on you have to execute this command line every time you want to use transclient.

Already have an apiKey

If you have used this service before and you already have an apiKey then you can provide that apiKey instead of your username and password as follows: java -jar transclient.jar -t mymemory --apiKey YourApiKey -lp en|es

Note that you can change your language settings to any language you wish (-lp fromLang|toLang)

Yandex

You need to go to Yandex web site to generate an apiKey. When you get your apiKey go to the command line tool and type the following: java -jar transclient.jar -t yandex --apiKey YourApiKey -l en-es. Then enter a valid file or directory path where the text to be translated is

Note that you can change your language settings to any language you wish (-l fromLang-toLang)

Note

transclient will check both MyMemory and Yandex usage limits so you be careful with the amount of text you intend to process

About

Simple java-based translator

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages