Below is a simple JavaScript Bookmark to translate a webpage from German to English or English to German. I've been using this JavaScript Bookmark to translate the German Area of the IPFire forum to English. At times the translation is a little hard to understand and other times it works very well.
Create a bookmark in your browser, add a website name, and then cut and paste the javascript line below as the website address.
The langpair
(language pair) can be easily changed to any language needed. The first two letters are the source. The source can also be changed to auto
(auto language detected).
For example: de|en
<=> de%7Cen
is German to English. And auto|en
<=> auto%7Cen
is auto to English.
Website name:
Translate DE
Website Address or Location:\
javascript:location='http://translate.google.com/translate?langpair=de%7Cen&u='+encodeURIComponent(location)
Note: I tried the auto <=> English (auto|EN) but that did not always start the translation when there were too many English words at the beginning of a translated webpage.
The above works well with Safari and Firefox on a Mac. I did not test Google Chrome since it includes auto translation. I have-not tested other combinations.
Website name:
Translate EN
Website Address or Location:\
javascript:location='http://translate.google.com/translate?langpair=en%7Cde&u='+encodeURIComponent(location)
Older Revisions • May 19 at 4:30 pm • Michael Tremer