![]() Test Google Translate - A GitHub repository which demonstrates this example. Get ( cJSONTranslation, '' ))) end end finally jdResponse. Home Products Transliterate (Deprecated) Stay organized with collections Save and categorize content based on your preferences. Ang serbisyo ng Google, na inaalok nang libre, ay agarang nagsasalin ng mga salita, parirala, at web page sa pagitan ng English at mahigit 100 iba pang wika. ![]() It will continue to work as per our deprecation policy. Count ) do begin joSentence := TJSONObject ( jaSentencesArray ) WriteLN ( Trim ( joSentence. The Google Transliterate API has been officially deprecated as of May 26, 2011. FindPath ( cJSONSentences )) for Index := 0 to Pred ( jaSentencesArray. JSONType = jtObject ) then begin joTranslation := TJSONObject ( jdResponse ) jaSentencesArray := TJSONArray ( joTranslation. ![]() Uses ) + '&sl=' + cArrayShortLanguages // Auto Detect + '&tl=' + cArrayShortLanguages // English + '&dt=t&dj=1' // dj=1 makes the response be a JSON Object + '&ie=UTF-8&oe=UTF-8' strResponse := CallGoogleTranslate ( URL ) try jdResponse := GetJSON ( strResponse ) if ( jdResponse nil ) and ( jdResponse. This function will return the JSON response. ss - synonyms of source text, if it's one word.md - definitions of source text, if it's one word.bd - dictionary, in case source text is one word (you get translations with articles, reverse translations, etc.).rm - transcription / transliteration of source and translated texts.dj - JSON response with names instead of only arrays (dj=1).dt - may be included more than once and specifies what to return in the reply.sl - source language code (auto for auto detection).There are at least two way to access Google Translate:įor information on the latter please consult: Google Translate Getting Started Info on the paramsĪccording to an answer on Stack Overflow ( What is the meaning of Google Translate query params?) here's a list of the params to the HTTP GET call: 5 Parsing the JSON Object based response.4 Parsing the JSON Array based response.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |