Automatic translation with Google Translate

Share your tips, tricks and favorite iMacros macros, scripts and applications for web automation in general here.
Forum rules
iMacros EOL - Attention!

The renewal maintenance has officially ended for Progress iMacros effective November 20, 2023 and all versions of iMacros are now considered EOL (End-of-Life). The iMacros products will no longer be supported by Progress (aside from customer license issues), and these forums will also no longer be moderated from the Progress side.

Thank you again for your business and support.

Sincerely,
The Progress Team
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