Quantcast
Channel: ProZ.com Translation Forums
Viewing all articles
Browse latest Browse all 3905

A simple Google Translate translator for API users | Cool!

$
0
0
Forum: CAT Tools Technical Help
Topic: A simple Google Translate translator for API users
Poster: Michael Joseph Wdowiak Beijer
Post title: Cool!

[quote]Samuel Murray wrote:

[quote]Michael Joseph Wdowiak Beijer wrote:
Figure out how the Google Translate API works and build your own little app using AutoHotkey or AutoIT? [/quote]

Did that. Here is the updated version of it:
[url removed]

The readme file says:

[i]simplegoog v3 ###.au3

Simplegoog is a simple script to translate text file using Google Translate via die paid API key. It requires a paid Google Translate API key to work.

Rename the script with your details. Say your API key is 12345 and you want to translate from German to English, then rename "simplegoog v3 ###" to "simplegoog v3 #12345#de#en".

The AU3 file must be double-clicked to work (you need to install AutoIt). You can also double-click the EXE file, if you like (don't have to install AutoIt).

If you double-click, you'll be asked whether you want to translate the clipboard or a file. If you translate a file, you have to select the input file. If you translate the clipboard, the translation will be put on the clipboard at the end. Or: you can drag and drop your input file onto the EXE file, and it will process the input file.

The output file is the input file with "_output.txt" appended to it's file name. The script does not overwrite existing files but appends to it. The input format is plain text, UTF8 with BOM, with preferably one sentence per line. If the lines are too long, we can't send them to Google.[/i]

[Edited at 2016-11-12 00:40 GMT] [/quote]

Looks very interesting.

I currently have very similar functionality inside of Déjà Vu X3 (just select sth and press Ctrl+G, and your selection will be automatically translated by any of your connected MT providers), but I bet your script could be quite useful in various contexts. In fact, if you polished it up a bit it might be an interesting alternative for some people to GT4T ( [url removed] ). I will probably play around with it a bit and start using it when not working in DVX3.

Michael

Viewing all articles
Browse latest Browse all 3905

Trending Articles