Oddacon Ripper
unread,Oct 12, 2011, 3:31:39 AM10/12/11Sign in to reply to author
Sign in to forward
You do not have permission to delete messages in this group
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to google-tra...@googlegroups.com
i have the google translate API v1 and I was wondering how do i use the v2. like do i have to completely my scripts to detect the languages? like for instance with v1 i use something like:
<script type="text/javascript">
google.load("language", "1");
function Translate() {
document.getElementById('language').style.display = "none";
TranslateDiv('content');
}
function TranslateDiv(div_id) {
google.language.translate(document.getElementById(div_id).innerHTML, '', document.getElementById('language').value, function(result) {
if (result.translation) {
document.getElementById(div_id).innerHTML = result.translation;
}
});
}
</script>
I'm just wondering how i enable the v2 to get it to work. Do i have to change my scripts? or do i have to enable billing on the API console page? please help!!!!!!!!!!!!!!!!!!!!!!!!!!!