translate
String translate(String sourceLang,
String targetLang,
String source,
Translation[] temporalDict,
String dictTargetLang)
throws AccessLimitExceededException,
InvalidParameterException,
LanguagePairNotUniquelyDecidedException,
NoAccessPermissionException,
ProcessFailedException,
NoValidEndpointsException,
ServerBusyException,
ServiceNotActiveException,
ServiceNotFoundException,
UnsupportedLanguagePairException
Run translation.
- Parameters:
sourceLang
- Translation source language (RFC3066 compliant)targetLang
- Target language of the translation (RFC3066 compliant)source
- String to be translatedtemporalDict
- Bilingual dictionary data used during translationdictTargetLang
- Target language 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