Auto-translating a web page
This has all gone away 😣😢 An article on my experiments with translating using auto-translator pages. I am going to re-purpose http://test.davelevy.info. At the moment it is set up for some experimentation with stylist.org and translation buttons. The stylist implementation just involved capturing some of the bullet item i.e. list item within a class name, so that the local stylist rules could be applied. I was looking at Stylist because the of the Neverwinter Vault but that’s gone now.
Here is code to implement a page translation to French by Google Translate
... <A HREF="http://www.google.com/translate_c?hl=en&langpair=en%7Cfr&u=http://test.davelevy.info/index.html" TITLE="Français, la traduction par Google"> <IMG SRC="images/fr.png" ALT="France:" WIDTH="16" HEIGHT="11" BORDER="0"> </A>
And Babelfish does Italian, ….
<A HREF="http://66.163.168.225/babelfish/translate_url_content?.intl=us&lp=en_it&trurl=http%3A%2F%2Ftest.davelevy.info%2F" TITLE="Italiano, traduzione da babelfish"> <IMG SRC="images/it.png" ALT="Italian" WIDTH="16" HEIGHT="11" BORDER="0"> </A>
Babelfish’s website, that I use has gone away and the web site interface is too hard to find, however here’s the implementation of the old test site code, the Italian one don’t work. However this code could be implemented in the footer of single.php.
I have left this line in place, because I thought it was pretty.
Translate:
NB I have not implemented the above code as a list, not applied any CSS to it. I am using default placement and the IMG properties.
Comments ( 2 )