Google Translate

By RobElliott RobElliott

Description

Google Translate will provide a temporary translation of your entire wikidot site in multiple languages.

Code

Go to http://translate.google.com/translate_tools and copy the code which looks like this:

<script src="http://www.gmodules.com/ig/ifr?url=http://www.google.com/ig/modules/translatemypage.xml&up_source_language=en&w=160&h=60&title=&border=&output=js"></script>

Then put this code into your wiki page inside [[embed]]..[[/embed]] tags. This will add a widget to you page will enable the user to select the language to translate the site into.

In action

An example of this in action is at http://tanglewoodhouse.wikidot.com/translate as shown below:

[フレーム]

Author

Snippet written by strathview does not match any existing user name, Febuary 2009.


Thanks to tsangk for this great snippet: conditional-blocks


text above inserted with:

[[include :snippets:if START |unique=1|type=equal|var1=%%name%%|var2=conditional-blocks]]
**##red|Thanks to tsangk for this great snippet:##** [[[code:conditional-blocks]]]
[[include :snippets:if END]]



Other snippets posted by RobElliott

Sproutbuilder - 16 Feb 2012 01:44
Slideshare - 16 Feb 2012 01:42
Show A YouTube Video Saved On Your Page - 16 Feb 2012 01:41
PollDaddy - 16 Feb 2012 01:32
Mibbit - 16 Feb 2012 01:21
Jotform - 16 Feb 2012 01:14


Rate this solution

If you think this solution is useful — rate it up!

rating: +4
Helmut_pdorf Helmut_pdorf 02 Feb 2013 21:09

Have a look on our community site: http://community.wikidot.com/forum:recent-posts

In the side bar : http://community.wikidot.com/nav:side you will find the code we have inserted to translate from english to every other labguage you select..

Hope this helps.

If you have questions - ask on the community forum..!


Service is my success. My webtips:www.blender.org (Open source), Wikidot-Handbook.

Sie können fragen und mitwirken in der deutschsprachigen » User-Gemeinschaft für WikidotNutzer oder
im deutschen » Wikidot Handbuch ?

by Helmut_pdorf Helmut_pdorf , 02 Feb 2013 21:09
Translation
PeterBayliss PeterBayliss 02 Feb 2013 21:01

Can anyone show me an example of a page translation widget in the sidebar actually working please? I need this because my website is aimed at a multi-national community but apart from English speakers there are only a handful of users in each of ten or so countries. The Babelfish widget used to work but no longer since it was taken over by Microsoft and the Google gadget just starts an endless loop within each page.

by PeterBayliss PeterBayliss , 02 Feb 2013 21:01
leiger leiger 31 Jan 2010 11:22

I pasted the code you gave me into this page and got this code given to me:

[[embed]]
<iframe class="" style="" frameborder="0" width="100%" height="300px" align="" scrolling="auto" src="http://snippets.wdfiles.com/local--code/code:iframe-embed#%3Cdiv%20id%3D%22google_translate_element%22%3E%3C/div%3E%3Cscript%3E%20function%20googleTranslateElementInit%28%29%20%7B%20%20%20new%20google.translate.TranslateElement%28%7B%20%20%20%20%20pageLanguage%3A%20%27en%27%20%20%20%7D%2C%20%27google_translate_element%27%29%3B%20%7D%20%3C/script%3E%3Cscript%20src%3D%22http%3A//translate.google.com/translate_a/element.js%3Fcb%3DgoogleTranslateElementInit%22%3E%3C/script%3E"></iframe>
[[/embed]]

Try that in your page ;-)


~ Leiger - Wikidot Community Admin - Volunteer
Wikidot: Official Documentation | Wikidot Discord server

Last edited on 31 Jan 2010 11:24 by leiger
by leiger leiger , 31 Jan 2010 11:22
Yep...Tried that :)
sgtevmckay sgtevmckay 31 Jan 2010 11:32

Thanks for the suggestion :)

tried that earlier today.
I ultimately found that iFrame is an isolated window, and has no direct link with the site as a whole.
So when you tell it to translate, it attempts to translate only what is in the iFrame, which is nothing

by sgtevmckay sgtevmckay , 31 Jan 2010 11:32
Possibility of an update to this for the latest Google Code???
sgtevmckay sgtevmckay 30 Jan 2010 23:18

I just fought for several hours to figure a way to utilize Google's new Translate code as seen on the Google aformentioned page……To no avail

Apparently this knowledge is beyond me as I am a fledgling to the wikidot arena.

If someone could see fit to update this short tut with current information….I would be deeply thankful

The new look would be much more aesthetic to my page outline than the old "Boxy Gadget" Look

Thanks in advance

by sgtevmckay sgtevmckay , 30 Jan 2010 23:18
Re: Possibility of an update to this for the latest Google Code???
leiger leiger 31 Jan 2010 11:03

Can you please post the code that you were given by Google?


~ Leiger - Wikidot Community Admin - Volunteer
Wikidot: Official Documentation | Wikidot Discord server

by leiger leiger , 31 Jan 2010 11:03
Re: Possibility of an update to this for the latest Google Code???
sgtevmckay sgtevmckay 31 Jan 2010 11:05

As you request :)

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

At the following address:
http://translate.google.com/translate_tools

Last edited on 31 Jan 2010 11:07 by sgtevmckay
by sgtevmckay sgtevmckay , 31 Jan 2010 11:05
Phil Chett Phil Chett 29 Apr 2009 23:00

that's because its private. the translator cant read the page.

by Phil Chett Phil Chett , 29 Apr 2009 23:00
Why doesn't this work with private wikidots?
Roland Bracht Roland Bracht 29 Apr 2009 20:54

Hi,
has anyone used translation with private wikidots? I tried all, but it didn't work with my private wikidot.

Hope someone might help me.

Thanks
Roland

by Roland Bracht Roland Bracht , 29 Apr 2009 20:54
Perfect! Why should we translate the handbook anymore?
Helmut_pdorf Helmut_pdorf 24 Mar 2009 11:48

Perfect! Why should we translate the handbook anymore?…


Service is my success. My webtips:www.blender.org (Open source), Wikidot-Handbook.

Sie können fragen und mitwirken in der deutschsprachigen » User-Gemeinschaft für WikidotNutzer oder
im deutschen » Wikidot Handbuch ?

by Helmut_pdorf Helmut_pdorf , 24 Mar 2009 11:48
page revision: 5, last edited: 16 Feb 2012 01:06
Unless otherwise stated, the content of this page is licensed under Creative Commons Attribution-ShareAlike 3.0 License
Click here to edit contents of this page.
Click here to toggle editing of individual sections of the page (if possible). Watch headings for an "edit" link when available.
Append content without editing the whole page source.
Check out how this page has evolved in the past.
If you want to discuss contents of this page - this is the easiest way to do it.
View and manage file attachments for this page.
A few useful tools to manage this Site.
Change the name (also URL address, possibly the category) of the page.
View wiki source for this page without editing.
View/set parent page (used for creating breadcrumbs and structured layout).

AltStyle によって変換されたページ (->オリジナル) /