org.ow2.weblab.service.translate
Interface Translator

All Known Implementing Classes:
MosesTranslator

public interface Translator


Method Summary
 java.lang.String getLangCode()
          Return the translated language code using ISO 639-1.
 java.lang.String translate(java.lang.String toBeTranslated)
          Translate into another language.
 

Method Detail

getLangCode

java.lang.String getLangCode()
Return the translated language code using ISO 639-1.

Returns:
the translated language

translate

java.lang.String translate(java.lang.String toBeTranslated)
                           throws java.io.IOException
Translate into another language.

Parameters:
toBeTranslated - the String to be translated in
Returns:
the translated String
Throws:
java.io.IOException - something wrong during the translation


Copyright © 2004-2011. All Rights Reserved.