Posts

Showing posts with the label .Net4.5

Google Translator using Windows forms

Image
This latest version of GoogleTranslator utilizes Google Translate's AJAX APIs to translate text and retrieves the translation by parsing the returned JSON content.  What is it? Sample Application beta Version GoogleTranslator is an object that allows you to translate text using the power of Google's online language tools. This demo  allows you to easily perform a reverse translation. The app can be used as a poor man's resource translator for simple phrases, but you'd be wise to confirm the translation with a native speaker before using the results. How do I create it? You use Google Api to get translated text to Target language you specify. string sourceLanguage =sourceLang; string targetLanguage = targetLang; string urlNew = string.Format("https://translate.googleapis.com/translate_a/single?client=gtx&sl={0}&tl={1}&dt=t&q={2}", sourceLanguage,