How to translate your web content to different languages?

Have you heard of Altavista’s Babel Fish? I found a cool way on how to use their service to translate your website easily.. I just found this out when visiting a website so it’s not originally my idea.. just sharing thoughts..

What you will only need is to redirect your website to [html]http://babelfish.altavista.com/babelfish/trurl_pagecontent?lp=en_+language_abbr+&url=+your_site [/html]

You can put that in your link directly just like below.
[html]

[/html]

But I wont recommend that idea since BabelFish change all links to redirect to their site. Try it and you’ll see what I mean. Once you switch to German, you can’t use the same links again to switch to another language instead you are redirected to its search page which isn’t really a good behaviour. The solution is put the link in javascript. Babelfish doesn’t encrypt links inside the script tag. Here is what I use:

[js]function translate(lang){
window.location = “http://babelfish.altavista.com/babelfish/trurl_pagecontent?lp=en_”+lang+”&url=http://www.yoursite.com/”;
}
function home(){
window.location = “http://yoursite.com”;
}

<a href=’javascript:translate(“de”);’> German</a>
<a href=’javascript:home();’>English</a>
[/js]

That’s more useful. And also do not forget to link back to BabelFish, just a way to thank them.

One catch though, I am not pretty sure if this is illegal. Let me know if it is so I may inform everyone.

Leave a Reply

Your email address will not be published. Required fields are marked *

*

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong> <pre lang="" line="" escaped="" highlight="">