Follows an example on how to use the code implemented in to easily translate a String in C#, using the Google Translation Service in one of its tens of possible language combinations,
Code:
using System;
using System.Collections.Generic;
using System.Text;
using Google.API;
using Google.API.Translate;
namespace TesteDoGoogleTranslate
{
class Program
{
static void Main(string[] args)
{
System.Console.WriteLine(Translator.Translate(”testando a tradução automática.”, Language.Portuguese, Language.English, TranslateFormat.text));
}
}
}
This test should print the Portuguese phrase ”testando a tradução automática.” as,
“testing the automatic translation.”
Just to note - Do not rely in it, the machine translation is far from perfect - but that can be used as base for more complex projects.
Fri Jul 24, 2009 11:37 am
jay102
Joined: Wed Jun 30, 2010 4:09 am Posts: 1
Re: Google Translate for .NET
Oh. It's very helpful. Thank you very much!
_________________
Wed Jun 30, 2010 4:20 am
gwenmacer
Joined: Sat Aug 14, 2010 1:54 pm Posts: 4
Re: Google Translate for .NET
It is really a very good tool. It is most popular among the users. Most of the users like to prefer this. It is most accurate and perfect one.
Users browsing this forum: No registered users and 0 guests
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum