This page is located in the dusty, largely neglected Basement of www.shawnbrown.com.

JS Translator Front-End


Click on a flag to translate this page.

JS.Translator.Front-End is a JavaScript that manages the translation of HTML pages into different languages via Google's translation services. The JavaScript writes several flags onto a page. Each flag is a link to Google's translation service. Clicking on a flag prompts Google to machine-translate the current page into a corresponding target language.

Minimal Formatting: This JavaScript does as little formatting as possible. You can wrap the <script> tag inside other tags (<font>, <b>, etc.) so that it matches the style of your web page.

Additional Languages: The example on this page is for English-language websites. But you can get German-, Spanish-, French-, Italian- and Portuguese-language versions too.

Free: It's free to use and distribute.

DOWNLOAD v1.0 FOR...
English-language Websites

German-language Websites (translates to English and French)

Spanish-language Websites (translates into English only)

French-language Websites (translates to German and English)

Italian-language Websites (translates into English only)

Portuguese-language Websites (translates into English only)
Additional Flags Are Included

JS Translator Front-End In Use


Setup--Step 1

Copy the JavaScript and the accompanying files into a directory on your website.


Setup--Step 2

Set the flag_folder_url to the folder where you are keeping the flag GIF images.


Setup--Step 3

Copy the following lines into your HTML document...

You must replace the red text with a URL pointing to the copy of translate.js on your website.


LICENSE: This script and the accompanying flag images are free for personal use (no obligations--but keep the readme.txt together with the files you're using). The JavaScript and flag files are also free for business, non-profit organization and commercial sites but, in these cases, you must send email to me and tell me your site's URL (obligations: no money--however, send email to inform@shawnbrown.com and keep the readme.txt together with the files you're using).

FLAG IMAGES: I created the flags used with this script. You can use them with the script or separately (for other purposes) as long as you adhere to the LICENSE. If you want to distribute the flags yourself (e.g., with a script *you* wrote), you need to email me (inform@shawnbrown.com) and get permission.

WARRANTY: Absolutely none. But if you find a problem with this JavaScript, inform me and I'll fix it if I have time. Also, if you would like a different flag (e.g. a Brazilian flag for your Portuguese link) let me know--I can create it and send it to you via email.

REDISTRIBUTION: You may redistribute this JavaScript and the flag images for free. You may not charge money for these files and you must keep the included readme.txt with the files you're distributing.


Copyright 2004 Shawn.Brown