[SOLVED]Google Website Translator gadget.

Have a question or a suggestion about a 3rd party addon module or plugin?
Let us know here.
Post Reply
burlington
Power Poster
Power Poster
Posts: 444
Joined: Wed Dec 27, 2006 5:15 pm

[SOLVED]Google Website Translator gadget.

Post by burlington »

Running CMSMS 1.9.4.2 "Faanui".

I have tried to put this 'tool' on the site either in straight code or as a GCB with or without {literal} tags and I can't get the tool to show at all.

The code for the tool is:
<quote>

<div id="google_translate_element"></div><__script__>
function googleTranslateElementInit() {
new google.translate.TranslateElement({
pageLanguage: 'en'
}, 'google_translate_element');
}
</__script><__script__ src="//translate.google.com/translate_a/element.js?cb=googleTranslateElementInit"></__script>

</quote>

Can anyone help please?

Thanks

Martin
Last edited by burlington on Mon Oct 10, 2011 8:41 am, edited 1 time in total.
lucy
Forum Members
Forum Members
Posts: 48
Joined: Tue Jun 29, 2010 9:59 am

Re: Google Website Translator gadget.

Post by lucy »

did you try yet to have the google script-call before the code?
Or put it into the head of yout template....
burlington
Power Poster
Power Poster
Posts: 444
Joined: Wed Dec 27, 2006 5:15 pm

Re: Google Website Translator gadget.

Post by burlington »

Thanks Lucy

I think you will have to explain this as I am not very good at all with scripts.

Martin
burlington
Power Poster
Power Poster
Posts: 444
Joined: Wed Dec 27, 2006 5:15 pm

Re: Google Website Translator gadget.

Post by burlington »

Just bumping this Topic up a bit in the hope of some further advice.

Thanks

Martin
wich
Forum Members
Forum Members
Posts: 31
Joined: Sun Mar 27, 2011 9:22 pm
Location: Italy

Re: Google Website Translator gadget.

Post by wich »

Hi,

I'm still working at the next release (1.5) of socialBookmarking plugin, and the google translator tool will be included in it.
Take a look at my site http://www.weichbrodt.it for testing a preview application for this great google's tool.
Stay tuned in the forge for the next release of the plugin: http://dev.cmsmadesimple.org/projects/socialbks.

Andrea
spcherub
Power Poster
Power Poster
Posts: 402
Joined: Fri Jun 06, 2008 5:54 pm

Re: Google Website Translator gadget.

Post by spcherub »

I was able to get it to work. Here's what I did.

I pasted the following code:

Code: Select all

<div id="google_translate_element"></div>
{literal}
<__script__>
function googleTranslateElementInit() {
new google.translate.TranslateElement({
pageLanguage: 'en'
}, 'google_translate_element');
}
{/literal}
</__script><__script__ src="//translate.google.com/translate_a/element.js?cb=googleTranslateElementInit"></__script>
within the </__body> of the page and was able to see the translation controls and translate the content on the page.

Hope that helps.
-S
burlington
Power Poster
Power Poster
Posts: 444
Joined: Wed Dec 27, 2006 5:15 pm

[SOLVED] Re: Google Website Translator gadget.

Post by burlington »

This is tremendous. It works! Many thanks

Martin
wich
Forum Members
Forum Members
Posts: 31
Joined: Sun Mar 27, 2011 9:22 pm
Location: Italy

Re: [SOLVED]Google Website Translator gadget.

Post by wich »

Hallo all,

today I've released a new version 1.5 for the plugin socialBookmarking.
This release cover in one touch up to 80 bookmarking sites without using external services.
The Google Website Translator gadget is included in this release.
You can find it in the forge: http://dev.cmsmadesimple.org/projects/socialbks
Post Reply

Return to “Modules/Add-Ons”