google-translate

Google Translate API (paid) vs Google Translate API (free)?

[亡魂溺海] 提交于 2019-12-21 02:51:08
问题 I need Translate API service for my app and have chosen Google Translate API, which will cost money and require authentication against the Google API. But during the search I've found this link which looks freely available and do what I need without cost: https://translate.google.so/translate_a/t?client=any_client_id_works&sl=auto&tl=ru&q=wrapper&tbb=1&ie=UTF-8&oe=UTF-8 Try to issue a GET request and you'll see it by yourself. So, my question is what is the difference between these above

Google Translate API (paid) vs Google Translate API (free)?

天涯浪子 提交于 2019-12-21 02:51:01
问题 I need Translate API service for my app and have chosen Google Translate API, which will cost money and require authentication against the Google API. But during the search I've found this link which looks freely available and do what I need without cost: https://translate.google.so/translate_a/t?client=any_client_id_works&sl=auto&tl=ru&q=wrapper&tbb=1&ie=UTF-8&oe=UTF-8 Try to issue a GET request and you'll see it by yourself. So, my question is what is the difference between these above

Google API translator. How can I translate only one DIV?

坚强是说给别人听的谎言 提交于 2019-12-20 05:44:11
问题 How can I modify this code to translate the only one container on page with id #lyrics? <div id="google_translate_element"></div> <script> function googleTranslateElementInit() { new google.translate.TranslateElement({pageLanguage: 'en', includedLanguages: 'ru', layout: google.translate.TranslateElement.InlineLayout.SIMPLE, autoDisplay: false, multilanguagePage: true}, 'google_translate_element'); } </script> 回答1: you can add class call notranslate into the body or the meta tag of the class

Server returned HTTP response code: 403 for URL Google Translate API

橙三吉。 提交于 2019-12-19 09:56:27
问题 i'm using google translate api for Java. When i'm tried to get translate from code i got the following error: java.io.IOException: Server returned HTTP response code: 403 for URL: http://translate.google.com.br/translate_a/single?client=t&sl=auto&tl=pt&hl=en&dt=bd&dt=ex&dt=ld&dt=md&dt=qc&dt=rw&dt=rm&dt=ss&dt=t&dt=at&ie=UTF-8&oe=UTF-8&otf=1&rom=1&ssel=0&tsel=3&kc=1&tk=620730|996163&q=Try%20mWinMgr%20=%20(WindowManager)context.getSystemService(Context.WINDOW_SERVICE);int%20displayWidth%20=

Easiest way to translate Android strings.xml file [closed]

隐身守侯 提交于 2019-12-18 11:54:01
问题 Closed . This question needs to be more focused. It is not currently accepting answers. Want to improve this question? Update the question so it focuses on one problem only by editing this post. Closed 26 days ago . I'm using Google translate to translate strings.xml files to other languages from English. But translating more than 1000 lines one by one takes too much time. Is there an easy way or code to do this? How do you translate your apps to other languages? 回答1: Check out my Python

How do you make a request for a translation with the Google Translate v2 API Client Library for java?

随声附和 提交于 2019-12-18 11:46:37
问题 There aren't examples on how to use Google Translate API Cliente library for java. In this page Google suggest to search examples for their APIs but there is not a single one for Google Translate API: https://github.com/google/google-api-java-client-samples Since I didn't found any example for Google Translate API I don't have any clue about how to use their official java library. I want to make a simple request to translate a text (for example Hello World from english to spanish) with the

Google Translate API - No Access Control Origin with Text to Speech

≡放荡痞女 提交于 2019-12-18 08:55:29
问题 I posted this question on SO to get Google Translate Text-To-Speech to work. Google Translate API text-to-speech: http requests forbidden I was told I needed a key and to enable billing. I've since done that. I know billing is enabled because, using their specified endpoint for words-only translations (not narrated speech) ( GET https://www.googleapis.com/language/translate/v2?key=INSERT-YOUR-KEY&source=en&target=de&q=Hello%20world ), I'm able to get a response both in DHC and in my

Python script to translate via google translate

前提是你 提交于 2019-12-18 04:21:05
问题 I'm trying to learn python, so I decided to write a script that could translate something using google translate. Till now I wrote this: import sys from BeautifulSoup import BeautifulSoup import urllib2 import urllib data = {'sl':'en','tl':'it','text':'word'} request = urllib2.Request('http://www.translate.google.com', urllib.urlencode(data)) request.add_header('User-Agent', 'Mozilla/5.0 (Windows; U; Windows NT 5.1; it; rv:1.8.1.11) Gecko/20071127 Firefox/2.0.0.11') opener = urllib2.build

Detect User's Preferred Language and Google Translate Automatically

寵の児 提交于 2019-12-17 22:24:49
问题 I use this script in my site for translation <div id="google_translate_element" align="center"></div> <script type="text/javascript"> function googleTranslateElementInit() { new google.translate.TranslateElement({ pageLanguage: 'auto', autoDisplay: false, layout: google.translate.TranslateElement.InlineLayout.SIMPLE }, 'google_translate_element'); } </script> <script src="//translate.google.com/translate_a/element.js?cb=googleTranslateElementInit"></script> It is working just fine :) But is

translate a PHP $string using google translator API

冷暖自知 提交于 2019-12-17 18:07:24
问题 been google'ing for a while how is the best way to translate with google translator in PHP, found very different ways converting URLS, or using Js but i want to do it only with php (or with a very simple solution JS/JQUery) example: //hopefully with $from_lan and $to_lan being like 'en','de', .. or similar function translate($from_lan, $to_lan, $text){ // do return $translated_text; } can you give me a clue? or maybe you already have this function.. my intention it's to use it only for the