Clicking the link will trigger a small console window allowing the user to view multiple translations of the current page. Click on the link in the above box to see OmniLang in action.
By default, the translation link will be displayed even if the user's default language is the same as the language of the web page (i.e. even if a translation is probably not required). The default can be overridden so that same-language users will not see the translation option.
By default, the console will open another window and initiate a translation automatically if the appropriate source and destination languages can be determined. The default can be overridden so that translation occurs only at the user's explicit request.
Every action takes place in a new window, so the original site is unaffected.
We cannot be held responsible for losses caused by the use of using OmniLang scripts, whether due to software bugs or service outages or any other reason. In other words, use at your own risk. Please send suggestions/bug reports to:
Copy the HTML code in the box below and paste it where you want the link to appear on your page.
In line 4, the variable omnilangFrom should be set to indicate the language your page is written in. Just insert the corresponding 2-digit code (see table at right). For example, if the page is in English, change that line to: var omnilangFrom='en';
To suppress the link for same-language users, change the value of omnilangDisplayAlways from "yes" to "no" in line 5.
To suppress auto-initiation of the translation, change the value of omnilangStart from "yes" to "no" in line 6.
You can also change the link text or make other minor changes, but be careful doing so: if you introduce even a slight error, the script may not work at all.
If your page uses frames, you may want to replace "document.location" with "parent.location", but I have not tested that extensively. You can also simply hard-code the URL within single quotes.
Copying the code to the clipboard (Windows):
first click on the text box; then highlight "all" (ctrl-A); then copy the highlighted text (ctrl-C). Pasting the text from the clipboard to your HTML page (Windows):
open the page in a file editor; put the cursor where you want the text to go; paste (ctrl-V).
Text, site design and software code copyright 2004 by John Malyon. The information on this site is a unique compilation of information and is protected by copyright worldwide.