Part code:
google.load("language", "1");
function initialize() {
google.language.translate("$text", "ru", "en", function(result) {
if (!result.error) {
var container = document.getElementById("translation");
container.innerHTML = result.translation;
}
});
}
google.setOnLoadCallback(initialize);
</script>
..... and......
<div id=\"translation\"></div>
How to display the result is not in the block, and php variable and displayed in html code?