in

ASP.NET Weblogs

Jason Nadal

Restless C#ding

Added languages to Translation Web Service

I added the following to my translation web service.  Please post feedback if you like it or are having problems with it.  The old method is now deprecated, and the new method that should be used is TranslateLanguage(LanguagePair,InputText);

The address of the ASMX file to use for the web services is: http://www.restlessdelusions.com/projects/services/translate/translate.asmx

  • TranslateLanguage
    Language translation service.
    Takes 2 inputs:
    string LanguagePair is one of the following values:
    'en|de': English to German
    'en|es': English to Spanish
    'en|fr': English to French
    'en|it': English to Italian
    'en|pt': English to Portuguese
    'de|en': German to English
    'de|fr': German to French
    'es|en': Spanish to English
    'fr|en': French to English
    'fr|de': French to German
    'it|en': Italian to English
    'pt|en': Portuguese to English
    string InputText is the text to be translated.

  • TranslateEnglishSpanish
    Deprecated method; use TranslateLanguage instead.

Comments

 

Rob Zelt said:

Cool, now I can understand Clemens posts in German! Good work!
December 9, 2003 10:37 PM
 

Jason said:

Great work, just wanted to mention you should throw in some error checking on the string to be translated because characters like ' cause errors (it would appear you put the string directly into an sql statement.)
January 7, 2004 1:07 PM
 

Jason Nadal said:

I will look into this tonight, and post a fix. Thanks for the feedback.
January 7, 2004 2:04 PM
 

Jason said:

This is now fixed.
January 7, 2004 8:41 PM
 

bobijoe said:

Hello, i have a problem when i want to translate an english statement to french or deutsch : the accentuated caracters are represented by an '?' caractere and i don't know how to bypass this problem ? If somebody can help me ?

Thanks

PS:I'am french so don't regards on my bad english...
May 2, 2004 9:13 AM
 

Jason Nadal said:

Thanks for the comment; I'll look into this issue today.
May 2, 2004 1:04 PM
 

zanna said:

I'm trying this ws but the output text is always blank.

TranslateLanguage("en|fr","home")

You  know why?

January 3, 2008 5:25 AM
 

passerby said:

im trying to translate the whole page from english to chinese. How to?

January 11, 2008 12:09 AM
 

Lance said:

I'm trying to use this service with an Adobe Flex application.  When I load your WSDL this is the error I see.

RPC Fault faultString="The WSDL contains an overloaded operation (TranslateLanguage)"

Do you have a version without overloaded methods?

Thanks

February 23, 2008 3:47 PM
 

Sandeepan Kundu said:

Have you stopper the service...

It's not showing up..

can shoot mail me on sandeepan [dot] kundu [at] gmail[dot] com

April 17, 2008 5:28 AM
 

Deepak Sharma said:

Hi,

Can any one tell me how can i use this service with classic asp.

Or can i use it with ASP.net. Pzl tell me the procedure or the sampel code

May 17, 2008 4:43 PM
 

QuanT said:

I can't connect to your webservice. My location is Japan

July 6, 2008 5:06 AM

Leave a Comment

(required)  
(optional)
(required)  
Add