Automatic translation with Google Translate

Share your tips, tricks and favorite iMacros macros, scripts and applications for web automation in general here.

Moderator: iMacros Moderators

Automatic translation with Google Translate

by Daniel, Tech Support on Mon Apr 26, 2010 7:34 am

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
Daniel, Tech Support
 
Posts: 1483
Joined: Tue Jan 26, 2010 4:35 am

Return to How-To's and useful iMacros: All other topics

Who is online

Users browsing this forum: No registered users and 2 guests

-->