I recently have come across with a need for some type of "translation"-type plug-in that could translate specific fields or areas to other languages.
I am not sure if something like开发者_StackOverflow中文版 this even is out there - but I thought this might be a good place to ask.
You might want to take a look at the Sunday Morning jQuery plug-in. It utilizes the Google Translate API and can translate either single words (perhaps on a click event), entire fields, or whatever else you might need to do.
Example of usage: (Double clicking a word for French translation)
HTML
<div id="example2">
<p class="example">My kingdom for a horse!</p>
</div>
jQuery
$('#example2 .example').sundayMorningReset();
$('#example2 .example').sundayMorningBubble({
source:'en',
destination:'fr'
});
Take a look through their documentation near the bottom of the page - as it features all the different methods of implementing it, hope this helps.
精彩评论