I add ” in <script>PrisnaGWT.translate (‘{$ client_language}’)</script>.
But he doesn’t work.
add_action ('wp_footer', 'setGoogleTranslate');
function setGoogleTranslate () {
global $target_language, $client_language;
if (! is_null ($client_language) and $target_language! = $client_language) {
echo ("<script>PrisnaGWT.translate ('{$client_language}')</script>"');
}
}
-
This reply was modified 5 years, 5 months ago by oliv134.