Automatic translation with Google Translate

Share your tips, tricks and favorite iMacros macros, scripts and applications for web automation in general here.
Post Reply
Daniel, Tech Support
Posts: 1483
Joined: Tue Jan 26, 2010 11:35 am

Automatic translation with Google Translate

Post by Daniel, Tech Support » Mon Apr 26, 2010 2:34 pm

Hello,

I just wanted to share here the macro from this topic, which others may also find useful. It takes the current URL and submits it to Google Translate, so that the current page is translated into desired language. Currently it is setup to translate from English into Spanish, but you can of course change the languages to anything.

Code: Select all

SET !VAR1 {{!URLCURRENT}}
URL GOTO=http://translate.google.com/#
TAG POS=1 TYPE=TEXTAREA FORM=NAME:text_form ATTR=ID:source CONTENT={{!VAR1}}
TAG POS=1 TYPE=SELECT FORM=NAME:text_form ATTR=ID:old_sl CONTENT=%en
TAG POS=1 TYPE=SELECT FORM=NAME:text_form ATTR=ID:old_tl CONTENT=%es
TAG POS=1 TYPE=INPUT:SUBMIT FORM=ID:text_form ATTR=ID:old_submit
Best regards,
Daniel, iOpus Support
Post Reply