Page 1 of 1

Automatic translation with Google Translate

Posted: Mon Apr 26, 2010 2:34 pm
by Daniel, Tech Support
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,