google-translate

Stopping google translate from translating datepicker

白昼怎懂夜的黑 提交于 2019-12-01 14:38:30
http://jsfiddle.net/tkRaQ/51/ The "addClass" here: $(".datepicker").datepicker().addClass('notranslate'); doesn't fix it.... (google translation stops the selection of dates from working) For some reason the other code fixes it: $("#fix").click(function() { $('.ui-datepicker').addClass('notranslate'); }); Is there a way of stopping the translation without #fix.click? Your first line is adding the notranslate class to the input element that you're triggering the datepicker from. The datepicker UI elements are different from the input field, and get created automatically at the end of the

Stopping google translate from translating datepicker

天涯浪子 提交于 2019-12-01 12:26:38
问题 http://jsfiddle.net/tkRaQ/51/ The "addClass" here: $(".datepicker").datepicker().addClass('notranslate'); doesn't fix it.... (google translation stops the selection of dates from working) For some reason the other code fixes it: $("#fix").click(function() { $('.ui-datepicker').addClass('notranslate'); }); Is there a way of stopping the translation without #fix.click? 回答1: Your first line is adding the notranslate class to the input element that you're triggering the datepicker from. The

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

扶醉桌前 提交于 2019-12-01 11:01:18
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=%20mWinMgr.getDefaultDisplay().getWidth();where%20context%20is%20Context%20instance.By%20default,%20the

Google translate exclude words

好久不见. 提交于 2019-12-01 08:08:50
I have a Google translate on our site. I want to prevent some words and phrases from translation. Is it possible to create some list of NonTranslated words and word combinations? The only possibility is to add class="notranslate" to the elements that shouldn´t be translated. To prevent the whole site from being translated, add <meta name="google" content="notranslate"> 来源: https://stackoverflow.com/questions/18108262/google-translate-exclude-words

Google translate exclude words

不打扰是莪最后的温柔 提交于 2019-12-01 06:43:49
问题 I have a Google translate on our site. I want to prevent some words and phrases from translation. Is it possible to create some list of NonTranslated words and word combinations? 回答1: The only possibility is to add class="notranslate" to the elements that shouldn´t be translated. To prevent the whole site from being translated, add <meta name="google" content="notranslate"> 来源: https://stackoverflow.com/questions/18108262/google-translate-exclude-words

How to add Google Translate link that triggers translation?

ぐ巨炮叔叔 提交于 2019-11-30 15:28:28
问题 I have a web page in Bulgarian and I want my users be able to translate it one-click to English. Also there should not be any translation banner at the top of the page when a user enters to the page (it can after the user clicks the translation link). I have tried to use #googtrans(bg|en) (doc) but it didn't work, also it shows a banner at the top of the page due to this code: <script> function googleTranslateElementInit() { new google.translate.TranslateElement({ pageLanguage: 'bg',

Get Chinese Romanization from Google Translate API

亡梦爱人 提交于 2019-11-30 12:54:10
The Google language translate API works cleanly to translate into Chinese: <script type="text/javascript" src="http://www.google.com/jsapi"></script> <script> google.load('language','1'); function googletrans(text) { google.language.translate(text,'en','zh',function(result) { alert(result.translation); }); } </script> <input onchange="googletrans(this.value);"> Example input: "Hello" Result: "你好" My problem is I can't get the Romanization (pronunciation using English letters). This is a known issue . Now the data is right there on translate.google.com (Example input: "Hello" Result: "Nǐ hǎo")

Google Translate Activity not working anymore

社会主义新天地 提交于 2019-11-30 10:00:36
I wrote a program that invokes Google Translator android application via Intent.ACTION_VIEW . The problem is that invoking the Google Translator App does not work anymore, although it did once. The code is identical to the code given here: Returning Translated Text from Google Translate Activity (yes, I tried to replace my code by that code, the Google Translator App behaves as if it does not receive any data.) Currently I cannot specify the text and the two languages. The best I can do is to use ACTION_SEND , but it ignores the two languages: Intent i = new Intent(); i.setAction(Intent.ACTION

How to translate entire website with Google Translate

情到浓时终转凉″ 提交于 2019-11-30 09:41:32
问题 I am currently using the following to translate a web page: http://translate.google.com/about/intl/en_ALL/tour.html#professional The problem is, when I put the code snippet generated on the Google site onto my web pages, the user has to choose their language on each page in the website. Is there any way to do it so that the user only chooses once and then every subsequent page they visit in my website gets automatically translated to their chosen language? 回答1: It appears this problem only

Google Translate API always returning 'Daily Limit Exceeded'

百般思念 提交于 2019-11-30 08:19:59
I'm trying to get the google translate API up and running. On the getting started guide , it gives the following example: https://www.googleapis.com/language/translate/v2/detect?key={MyAppId}&q=google+translate+is+fast I just want to get this working for now, so I'm just trying to get it working view via a browser post, so I created a testing web application (screenshot): and grabbed the API key, replaced the sample URL's key with my API key. I get the following response: { "error": { "errors": [ { "domain": "usageLimits", "reason": "dailyLimitExceeded", "message": "Daily Limit Exceeded" } ],