I'm wondering if there is a way to use google translation, or any other app/widget/way to programaticaly embed translation into a website to help translating specific content (not general all site translation):
Example:
I have one form input element with a value in english, and want to translate only that value to French, and insert it into a specific html element and then send that info in a form.
<!DOCTYPE html>
<html>
<body>
<input type="text" id="origin" value="Some text in English"/>
<button type="button" onclick="translate("origin", "destination")">Click Me to Translate!</button>
<input type="text" id="destination" value="Translated content"/>
<input type="submit"/>
</body>
</html>
The objective would be to use something similar to www.translate.google.com (or itself)... is there any app/widget/way to do this without translate all page?
Thank you
This is just one (first) way that worked for me... it can, probably, be optimized.
HTML to copy/past:
Javascript file: (you can separate functions to get token on Document.ready, so you can cut waiting time on translation, because you would already have an access_token in g_token)
C# Controller:
Time for hair to grow again in my head! :-P