translate
String translate(String sourceLang,
String[] targetLangs,
String source,
Translation[] temporalDict,
String[] dictTargetLangs)
throws AccessLimitExceededException,
InvalidParameterException,
LanguagePairNotUniquelyDecidedException,
NoAccessPermissionException,
ProcessFailedException,
NoValidEndpointsException,
ServerBusyException,
ServiceNotActiveException,
ServiceNotFoundException,
UnsupportedLanguagePairException
Run translation.
- Parameters:
sourceLang
- Translation source language (RFC3066 compliant)targetLangs
- Target languages of the translation (RFC3066 compliant)source
- String to be translatedtemporalDict
- Bilingual dictionary data used during translationdictTargetLangs
- Target languages of dictionary data(targetLang)
- Returns:
- The translated string
- Throws:
AccessLimitExceededException
- Violated an access restriction
InvalidParameterException
- An invalid parameter was passed
LanguagePairNotUniquelyDecidedException
- Multiple candidate language pairs exist
NoAccessPermissionException
- The user executing the call lacks execution privileges
NoValidEndpointsException
- There is no valid endpoint
ProcessFailedException
- Translation process failed
ServerBusyException
- The server is loaded and cannot process it.
ServiceNotActiveException
- The service is not active
ServiceNotFoundException
- The specified service was not found
UnsupportedLanguagePairException
- An unsupported language pair was specified