google-translate

Offline language translation API [closed]

半城伤御伤魂 提交于 2019-11-30 07:08:48
问题 Closed. This question is off-topic. It is not currently accepting answers. Want to improve this question? Update the question so it's on-topic for Stack Overflow. Closed last year . 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 and Google). They are HTTP RESTful APIs that work well for web or

Using DeepL API to translate text

荒凉一梦 提交于 2019-11-30 06:50:21
Is there any possibility to find out if the DeepL translator offers an API for the translation? Unfortunately I haven't found any information on this. Would like to implement this to an Excel script for auto translation. I've already tried it with Google (like https://translate.google.com/#en/es/Hello%20World ) but DeepL seems more accurate. There is a POST call that allows you get the translations, I don't know how many time this will be supported or it's times limitations but here it is: Url: https://www.deepl.com/jsonrpc You should make a POST call with the next json: { 'jsonrpc': '2.0',

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

旧巷老猫 提交于 2019-11-30 05:04:48
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 Official library made by Google: https://developers.google.com/api-client-library/java/apis/translate/v2

Easiest way to translate Android strings.xml file

╄→гoц情女王★ 提交于 2019-11-30 04:55:47
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? Check out my Python scripts at Github. It works here behind a web page. You feed strings.xml plus IN and OUT language codes, Google Translate does the rest. Works best if you use simple unambiguous English. Kudos to Khayam Gondal , on whose work I build. I use translation editor , its not automatic but still very convenient way and it is built

Can you style the google translate plugin?

只谈情不闲聊 提交于 2019-11-30 00:26:15
I'm using this plugin (http://translate.google.com/translate_tools) to translate my website. The problem is that I can't figure out how to style it so it does not fit with the rest of the page. Any suggestions? Sure you can style anything that renders out on your page. Here is a part of the rendered mark-up: <div id="google_translate_element"> <div class="skiptranslate goog-te-gadget" style=""> <div id=":1.targetLanguage"> <select class="goog-te-combo"> </select> </div> Powered by <span style="white-space: nowrap;"> </span> </div> You can take a look at what goog-te-combo renders out and

Get Chinese Romanization from Google Translate API

感情迁移 提交于 2019-11-29 18:08:21
问题 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

Translating using Google Translate API

让人想犯罪 __ 提交于 2019-11-29 17:05:32
I want to use the following code as the basis for a program that translates user input to English. I am getting the error "cannot find symbol - GoogleApi." Can someone please help me figure out what to do? import com.google.api.translate.Language; import com.google.api.translate.Translate; public class Main { public static void main(String[] args) throws Exception { // Set the HTTP referrer to your website address. GoogleAPI.setHttpReferrer(/* Enter the URL of your site here */); // Set the Google Translate API key // See: http://code.google.com/apis/language/translate/v2/getting_started.html

Google Cloud Translation API The request is missing a valid API key

烈酒焚心 提交于 2019-11-29 16:59:19
I'm trying to use the Google Cloud Translation API in my application but whenever I try to translate something it comes up with this missing valid API error. I've done the quickstart steps and that didn't work. https://cloud.google.com/translate/docs/quickstart I've tried the steps in the client library authentication and that hasn't worked. https://cloud.google.com/translate/docs/reference/libraries E/AndroidRuntime: FATAL EXCEPTION: main Process: herrsa1.bit.translator, PID: 16598 com.google.cloud.translate.TranslateException: The request is missing a valid API key. at com.google.cloud

How to translate entire website with Google Translate

耗尽温柔 提交于 2019-11-29 16:48:15
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? gonzobrains It appears this problem only shows up when using Google Chrome. Other browsers work fine: http://groups.google.com/group/google

Issue with Google Translation on Website?

时间秒杀一切 提交于 2019-11-29 16:12:51
So I am using the google translate tool for my website- I am setting it up via: https://translate.google.com/manager/website Under display mode, I keep choosing automatic but it looks like the banner ALWAYS displays even though they state it will ONLY show if the browser is not the language of the site (which is EN) What's going on? Is their tool broken? is there a way to use this tool to just show if the language is not en? Paste the code below on your website. Languages mentioned in includedLanguages in googleTranslateElementInit() will display on your website. I will suggest you to paste