Please, can anyone help translating the following strings using Bing Translation API's GetTranslationsArray() method?
"FTP Manager makes it easy to schedule and automate your file transfers. Using FTP Manager you can easily establish a connection to any FTP server and specify action rules that automate the file transfer process."
If i try to translate the string then a SoapHeaderException is received as follows:
Message:
ArgumentException: Multiple sentences not supported.
Parameter name: Texts : ID=3743.V2_Soap.GetTranslationsArray.DDB3A31
StackTrace:
at System.Web.Services.Protocols.SoapHttpClientProtocol.ReadResponse(SoapClientMessage message, WebResponse response, Stream responseStream, Boolean asyncCall)
at System.Web.Services.Protocols.SoapHttpClientProtocol.Invoke(String methodName, Object[] parameters)
at BingTranslationService.SoapService.GetTranslationsArray(String appId, String[] texts, String from, String to, Int32 maxTranslations, Boolean maxTranslationsSpecified, TranslateOptions options)
I split this string using the regular expression: (?<=['""A-Za-z0-9][\.\!\?\. ])\s+(?=[A-Z]) and then send the ouput of this split as an input to the GetTranslationsArray().
I am trying to avoid the BreakSentences() of Bing Translation API and so want to create the sentences manually. Does anyone know how Bing might be creating sentences from a given paraghraph?
Any help would be appreciated.
Thanks.