Click here to Skip to main content
15,885,546 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
I have a local website in English, but i want to translate it into another language.

But the result is not good, many word is not right. So i want to edit them. But i know that it is only work on a domain and cannot in local host. So can any one could tell me how to edit it in local host.

And another, how can i hide the google toolbar on the website to make it translate automaticaly.

Thank you very much.

What I have tried:

I try to use translate like this

<script type="text/javascript">
function googleTranslateElementInit() {
new google.translate.TranslateElement({pageLanguage: 'en', includedLanguages: 'vi', layout: google.translate.TranslateElement.FloatPosition.BOTTOM_LEFT}, 'google_translate_element');
}
</script><script type="text/javascript" src="//translate.google.com/translate_a/element.js?cb=googleTranslateElementInit"></script>
Posted

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900