Automatic Translation
-
Hi,
I know this plugin is designed to have visitors click languages they want and then the translation starts. But is there any way to automatically translate specified contents to specified languages once visitors render the pages?
I tried to do this with the following way, but it didn’t work…
The basic idea below is to have javascript to execute translation once the html finishes loading.
1. Set “Show flags over translator”
2. Display mode : inline
3. Put do_shortcode(‘[prisna-google-website-translator]’) on pages with the specified contents
4. Add the following script
window.onload = function(){
(function () {
PrisnaGWT.translate(‘[language-code(e.g. ‘en’)]’);
}());
}
When I click the flags displayed by the plugin, the translation works just fine. But the codes above don’t work for some reason.
Can anyone help me out of this?
Thank you in advance!
- The topic ‘Automatic Translation’ is closed to new replies.