Questions tagged [google-translate]

Google Translate is a paid statistical machine translation service provided by Google Inc. to translate a section of text, document or webpage, into another language.

Google Translate functionality can be consumed programmatically using the Google Translate API. Google Translate API v1 is no longer available as of December 1, 2011 and has been replaced by Google Translate API v2.

While the Google Translate API switched to a paid service, Google is still offering the Google Translate Element as an ongoing alternative. The Google Translate Element, when embedded on a webpage via JavaScript and an optional placeholder HTML <div>, can translate pages automatically.

1884 questions
229
votes
11 answers

How to disable Google translate from HTML in Chrome

I just made a website for a french restaurant. The website is in english, but I guess there is enough french on the website (labeled pictures of menu items) to prompt the visitor to translate the website if using Chrome. Is there something I can…
twinlakes
  • 9,438
  • 6
  • 31
  • 42
197
votes
18 answers

googletrans stopped working with error 'NoneType' object has no attribute 'group'

I was trying googletrans and it was working quite well. Since this morning I started getting below error. I went through multiple posts from stackoverflow and other sites and found probably my ip is banned to use the service for sometime. I tried…
steveJ
  • 2,171
  • 3
  • 11
  • 16
178
votes
20 answers

Why is my Python App Engine app using the Translate API getting an error of ImportError: No module named apiclient.discovery?

I got this error in Google App Engine's Python have used Google Translate API, But I don't know how to fix, from apiclient.discovery import build ImportError: No module named apiclient.discovery I'll try to set environment which indicates…
123
votes
5 answers

How can I tell Google Translate to not translate a section of a website?

Google Translate has a developer tool that will enable google translate on a website. Is there a way to tell Google Translate to not translate a section of the website? Perhaps with a class name on an HTML element? I've tried the HTML5 translate=no…
kingjeffrey
  • 14,894
  • 6
  • 42
  • 47
69
votes
1 answer

Is it possible to access to google translate api for free?

Google only gives access to their translate API with payment but I want free access. Is it possible to use Google's translate API for free? What are the alternatives?
Dominik
  • 1,265
  • 1
  • 16
  • 27
68
votes
7 answers

How can I get the file "service_account.json" for Google Translate API?

I try to use the Google Translate API in my development, but i can´t find a way to obtain the "service_account.json" file. The step on "Console Google Cloud Platform": steps on Console : Please, I need the steps in detail, since what I get from…
Alan Nexus
  • 793
  • 1
  • 6
  • 8
57
votes
8 answers

Using Google Translate in C#

I have to translate some text with Google's translate service. All code I've found doesn't work. I think because they have changed their service. If someone has working code, I would be very glad.
Max Frai
  • 61,946
  • 78
  • 197
  • 306
42
votes
5 answers

How to use Google Translate API in my Java application?

If I pass a string (either in English or Arabic) as an input to the Google Translate API, it should translate it into the corresponding other language and give the translated string to me. I read the same case in a forum but it was very hard to…
user1048999
  • 421
  • 1
  • 5
  • 3
39
votes
5 answers

Restricting usage for an Android key for a Google API

My question is about how to properly set the package name and SHA-1 certificate fingerprint in the Google Developers Console in order to restrict usage of my Android API key to my app. When I don't have anything set in the "Restrict usage to your…
rmtheis
  • 5,992
  • 12
  • 61
  • 78
28
votes
3 answers

Your application has authenticated using end user credentials from the Google Cloud SDK which are not supported by the translate.googleapis.com

After reading similar questions, such as: i am using gcp service account but when calling dialogue flow api its giving error : and Why is Google Cloud API trying to connect as an end-user? and applying the suggested solutions I am still getting the…
28
votes
10 answers

Google Translate set default language

Maybe this has an obvious solution that I'm overlooking, but I can't seem to find the correct parameter to put in to make this happen. Using the Google Translate widget on a site, I need to set the default language that the user sees when entering…
tdurham
  • 311
  • 1
  • 4
  • 6
27
votes
4 answers

Google Translate iframe workaround

I'm using Google Translate tools to translate a web page and I also have an iframe on this page, that is not obviously translated with the page. Is there a workaround, that any of you know, so I can have the iframe translated as well?
Jack Johnson
  • 593
  • 4
  • 11
  • 23
25
votes
11 answers

GoogleTrans API Error - Expecting value: line 1 column 1 (char 0)

I am having this error when translating thousands of text data in an iteration: Expecting value: line 1 column 1 (char 0) My code for translating big amounts of text: translatedList = [] for index, row in df.iterrows(): newrow =…
Kerem
  • 1,494
  • 2
  • 16
  • 27
25
votes
14 answers

Implementing Google Translate with custom flag icons

Currently, I'm using the simple Google Translate drop-down menu found here: http://translate.google.com/translate_tools I'd like to also be able to click on some flag icons I have and trigger the same javascript calls that are called by the…
JasonH
  • 521
  • 1
  • 8
  • 19
24
votes
1 answer

Offline language translation API

Please note that I am aware that this question has appeared in various forms at several places, including stackoverflow, but I have yet to see a satisfying answer. There are several pretty solid language translation APIs out there (eg., Microsoft…
Anurag Bhandari
  • 623
  • 2
  • 6
  • 20
1
2 3
99 100