Kayıtlar

Aralık 31, 2010 tarihine ait yayınlar gösteriliyor

SundayMorning, jQuery + Google Translate Api

URL:   http://sundaymorning.jaysalvat.com/ Google translate apisini jquery ile kullanmak için güzel bir plugin See this Amp at http://amplify.com/u/k4xs

Google translate API

Projelerinize çeviri yapan bir modül eklemek istiyorsanız google translate api kullanabilirsiniz. Aşağıda uygulamasını görebilirsiniz. C# ile hazırlanmış Amplify’d from blogs.msdn.com Translate your text using Google Api's Here is how you can translate a Text using Google 's "Unofficial" API's. The URL for Google Translate is - http://www.google.com/translate_t?hl=en&ie=UTF8&text={0}&langpair={1} "text" is your input string which needs to be translated. langpair is the language pairs involved in the tranlsation. E.g. "ar|en" means translate from Arabic to English. The result when you browse to the URL is a HTML page. You will have to do screen scraping to get your translated text. Below is a C# function which translates, scrapes and gives you the result. I am using String.Substring function but you can use Regex too. /// <summary> /// Translate Text using Google Translate API's /// Google URL - http://www.google.com/tr