GithubHelp home page GithubHelp logo

dpursehouse / gengo-java Goto Github PK

View Code? Open in Web Editor NEW

This project forked from gengo/gengo-java

0.0 3.0 0.0 206 KB

A Java library to interface with the Gengo API for translation.

License: Other

Java 100.00%

gengo-java's Introduction

Build Status

Gengo Java Library (for the Gengo API)

Translating your tools and products helps people all over the world access them; this is, of course, a somewhat tricky problem to solve. Gengo is a service that offers human-translation (which is often a higher quality than machine translation), and an API to manage sending in work and watching jobs. This is a Java interface to make using the API simpler (some would say incredibly easy).

Building

Ant

Simply run ant from the base directory after checking out. This will download dependencies, compile classes and package the library in lib/gengo.jar. Add this jar file to your classpath to start working with the library.

Maven

Run mvn package from the base directory. Package is built into the target directory.

Eclipse

Quick start:

  • Checkout code from github
  • File menu > New Java Project
  • Uncheck "Use default location"
  • Set project layout to Use project folder as root for sources and class files
  • Browse for location checked out code
  • Hit next
  • Hit finish
  • Build!

Dependencies

The JSON in Java package by Douglas Crockford.

Example Code

import org.json.JSONException;
import org.json.JSONObject;

import com.gengo.client.GengoClient;
import com.gengo.client.enums.Tier;
import com.gengo.client.exceptions.GengoException;
import com.gengo.client.payloads.TranslationJob;

public class ShortExample
{
    private void ShortExample() throws GengoException, JSONException
    {
        GengoClient Gengo = new GengoClient(ApiKeys.PUBLIC_KEY, ApiKeys.PRIVATE_KEY, true);
        List<TranslationJob> jobList = new ArrayList<TranslationJob>();
        jobList.add(new TranslationJob("test_job_slug", "This is a short test job", "en", "es", Tier.STANDARD));
        JSONObject response = Gengo.postTranslationJobs(jobList, true);
    }
}

Question, Comments, Complaints, Praise?

If you have questions or comments and would like to reach us directly, please feel free to do so at the following outlets. We love hearing from developers!

  • Email: api [at] gengo dot com
  • Twitter: @gengoit
  • IRC: #gengo

If you come across any issues, please file them on the Github project issue tracker. Thanks!

Documentation

Check out the full Gengo API documentation.

Credits & License

This library is based on the excellent C# interface by Saqib Shaikh

The library itself is licensed under a BSD-style license. See the enclosed LICENSE.txt file for more information.

gengo-java's People

Contributors

alexlide avatar deepak-adobe avatar hayate avatar hermanschaaf avatar hiroyu-n avatar mromaine avatar narusemotoki avatar ramen74 avatar randomwire avatar shawnps avatar yugui avatar

Watchers

 avatar  avatar  avatar

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.