Adding google-translation to sidebar

I have now tried to add a little lump of code to the sidebar, that make it possible to get the page translated via google-Translate.

It works like this: I add a custom field to posts and pages with the key “langauge” and the value “en” if the post/page is written in english or “da” if the post/page is written in danish.

The sidebar code displays the appropriate link to google-translate depending on the value of the language field.

Its not that pretty, but it gets the job done. Room for improvement definately exists.

And usability testing this on a native english speaker would be good…

See the code here: paste.uni.cc/18797

Tags: , ,

Leave a Reply