google-translation-api

Google Translate API: Requests from this client application <empty> are blocked

有些话、适合烂在心里 提交于 2021-02-19 08:27:24
问题 I've been getting error 403 - Requests from this Android client application are blocked using paid Google Cloud Platform Translation API. Works great when restrictions are set to none. There are a few threads around reporting similar issue, but none answered. I've seen in some examples, there's a version which had .setApplicationName(), I think that might help, but I can't find which version would that be. Code used is:` private void translate(String textToTranslate, String targetLanguage,

JSONDecodeError in Google Translate API

那年仲夏 提交于 2021-02-17 05:51:14
问题 I am trying to translate some data using googletrans python library. The below program first worked fine and after processing some requests it gives a JSONDecodeError . After some searching I found that Google may be blocking my IP address after a limited number of requests. Is this the actual problem? If then is there a solution? (Ex: using a vpn). Or else is there a fault in my code that causes the error? My Code import glob import errno import json from googletrans import Translator from

How to return the auto detected language from LanguageApp.translate?

安稳与你 提交于 2021-01-29 11:10:45
问题 I´d like to make an application which translates text to english (no matter which language is entered). The translation is already working pretty well, but now i´m trying to detect the language entered and i have no clue how to get the detected language from LanguageApp.translate. I tried using the google API but as it´s paid i need a opinion which is free as it´s a small project just for me and non commercial. var translatedText = LanguageApp.translate(sourceText, sourceLang, targetLang,

Python googletrans library not translating correctly

余生颓废 提交于 2021-01-27 16:27:55
问题 I'm using the google trans library to translate some comments from different languages to English. But when testing this library no matter what I try to translate it will say that the language 'src' is English. Even setting the 'src' to a specific language doesn't fix this problem. Examples of this can be seen below: Sample Code 1: from googletrans import Translator translator = Translator() print(translator.translate('veritas lux mea')) Output: Translated(src=en, dest=en, text=veritas lux

Python googletrans library not translating correctly

旧街凉风 提交于 2021-01-27 16:26:39
问题 I'm using the google trans library to translate some comments from different languages to English. But when testing this library no matter what I try to translate it will say that the language 'src' is English. Even setting the 'src' to a specific language doesn't fix this problem. Examples of this can be seen below: Sample Code 1: from googletrans import Translator translator = Translator() print(translator.translate('veritas lux mea')) Output: Translated(src=en, dest=en, text=veritas lux

Python googletrans library not translating correctly

霸气de小男生 提交于 2021-01-27 16:26:14
问题 I'm using the google trans library to translate some comments from different languages to English. But when testing this library no matter what I try to translate it will say that the language 'src' is English. Even setting the 'src' to a specific language doesn't fix this problem. Examples of this can be seen below: Sample Code 1: from googletrans import Translator translator = Translator() print(translator.translate('veritas lux mea')) Output: Translated(src=en, dest=en, text=veritas lux

Getting error in Google Transliterate API in javascript

时光怂恿深爱的人放手 提交于 2020-07-18 16:16:42
问题 I am using Google Transliterate API in my project to translate English text to Gujarati. It was working fine, however I am facing issue in google-jsapi now. Here's my code: <script type="text/javascript" src="http://www.google.com/jsapi"></script> <script> google.load("elements", "1", { packages: "transliteration" }); function onLoad() { var options = { sourceLanguage: 'en', destinationLanguage: ['gu'], shortcutKey: 'ctrl+g', transliterationEnabled: true }; // Create an instance on

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

Storing Google Translate results

房东的猫 提交于 2019-12-13 01:24:19
问题 My client is using Google Translate API to translate text from English to multiple languages. If the client provides me original and translated text in the form of say Excel sheet, am I allowed to store the translated text in my database? I tried googling this and found a page which says its not allowed, so wanted to confirm on that. Ref: this discussion 回答1: According to the Translation API FAQ document if you're post-editing the results, there's no attribution required, however, if you're