Translate - Language Translation for Grails

  • Tags: translation, language, api
  • Latest: 1.3.0
  • Last Updated: 25 May 2012
  • Grails version: 1.1 > *
  • Authors: Jonathan Griggs
0 vote
Dependency:
compile ":translate:1.3.0"
Custom repositories:
mavenRepo "https://oss.sonatype.org/content/repositories/releases/"
mavenRepo "https://oss.sonatype.org/content/repositories/snapshots/"

 Documentation

Summary

Translates text from one language to another, using the Microsoft Translator API

Installation

grails install-plugin translate

Description

Prior to version 1.1, this plugin was powered by the Google Translate API. As of 1.1, Microsoft Translator is the translation engine that powers this plugin. Google has announced that their Translation API is deprecated and all services will cease on 12/1/2011. If you are using a version of Grails Translate < 1.1, I strongly urge you to upgrade. The Microsoft Translator API is free to use and comes with generous hourly and daily limits.

Translate - Language Translation Plugin for Grails

Description

The Translate plugin provides a Grails Service, TagLib, and Controller to enable translation of text within your Grails application.

This plugin is powered by the Microsoft Translator API with the help of microsoft-translator-java-api, a compact, fast Java library that wraps the Microsoft Translator AJAX Services.

The TranslateService is backed by a configurable Least-Recently-Used (LRU) Cache to reduce the API calls made, particularly for oft-repeated translations (if you're dynamically translating I18N messages to foreign languages, for instance).

Prerequisites

Installation

Enter your application directory and run the following from the command line:

grails install-plugin translate

After you have installed the Translate plugin in your application, I'd recommend you point your browser to the Plugin test page to verify all is working and familiarize yourself with the functionality it provides:

http://localhost:8080/myAppContext/translate

Documentation

The official documentation for the Translate plugin may be found at https://github.com/boatmeme/grails-translate

Source Code

The source code is available on GitHub at https://github.com/boatmeme/grails-translate.

Find a bug? Fork it. Fix it. Issue a pull request.

git clone git://github.com/boatmeme/grails-translate

Contributions welcome!

Issue Tracker

Issue tracking is also on GitHub at https://github.com/boatmeme/grails-translate/issues.

Bug reports, Feature requests, and general inquiries welcome.

Contact

Feel free to contact me by email (jonathan.griggs at gmail.com) or follow me on GitHub at https://github.com/boatmeme.