Xoetrope
HomePage :: Categories :: PageIndex :: RecentChanges :: RecentlyCommented :: Login/Register
XUI 4.0
XuiPro logo

Google Translation API Support


Google's translation API provides a simple, unofficial, Java client API for using Google Translate. Carousel makes use of this API in the implementation of the Machine Translation feature. The translation makes use of the following two classes:

import com.google.api.translate.Language;
import com.google.api.translate.Translate;


An example of using the translate feature is shown below:

String translatedText = Translate.translate( "Hello World", Language.ENGLISH, Language.GERMAN );


When the XUI|Localisation|Run machine translation... action is run, the translate method of the Translate API is called to convert each String to the selected language.

Running machine translation


There are no comments on this page. [Add comment]

Page was generated in 0.2418 seconds