Search code examples
c#c#-4.0google-translategoogle-translator-toolkit

how to get all the translated words from google translation through C#?


In my windows application, i have to translate some word from 'English' to 'Hindi' language.I have using GoogleTranslation.cs for accessing and getting translated content from google. This is a small code snippts.

// Initialize the translator
using RavSoft.GoogleTranslator;
Translator t = new GoogleTranslator();
t.SourceLanguage = "English";
t.TargetLanguage = "Hindi";
t.SourceText = "bus";

// Translate the text
t.Translate();
Console.WriteLine (t.Translation);

It retrieving the translated word successfully.But i also want to get some more suggessted words offered by google translation page.for example if you want to translate a word Bus to Hindi languages then google translated like बस.Also, if you want to know alternative translated words then we have to click the translated word.Now,It's showing list of suggested translated words in a popup.So, I want to retrieve this list of words also.Kindly refer my attached picture for better understanding.

enter image description here

Is this possible to retrieve all those alternative translated words? Guide me to get out of this problem...


Solution

  • Assuming that GoogleTranslator.cs is some kind of wrapper around google api... you are out of luck. According to this FAQ (the bottom statement) this functionality is not availible via google translate api calls.