Google Translator using Text Widget
-
An easy solution to have your website pages translated into another language is to use the Text Widget to add the Google Translator to your website.
Enter the following information into the Text Widget.
Replace the website name “sanonofresafety.org” with your website name. You don’t need a title for the Text Widget. It will have the title “Google Translate” If you want a different title, change the “Google Translate” words to whatever you want to use.
You can see how this looks on my webpage (sanonofresafety.org) in the sidebar.
-
Heres the code for the link:
http://translate.google.com/translate?sl=en&tl=es&u=http%3A%2F%2Fsanonofresafety.org%2F -
-
-
Nice effort, but just so you know, the topic has been discussed before:
https://en.forums.wordpress.com/topic/how-to-add-google-translator-gadget-to-my-wp-blog?replies=32
…just so you know, before trying for the 5th time. -
The Google translation widget cannot be used on free hosted WordPress.com blogs. The software strips the code out for security reasons. You can create a translations page and you can use a widget that I located. See here > Translation widget for WordPress.com blogs
-
-
It’s not the actual Google translate widget. I know that doesn’t work.
See link http://sanonofresafety.org/google-translate-widget/
I had trouble displaying the code on this support page, so I created a link page to show the actual code.
-
Do you mean you made this ENTIRE thread and a post on your blog to display how to make a text widget with a link to the Google Translate website?
-
It’s not as simple as you think. You cannot use Google’s recommendation for creating a website translate link. Here is the link for their recommendation:
http://translate.google.com/translate_tools?hl=en
WordPress strips out the js code.
Also, those using the Text Box Widget may not know how to embed the proper link to make it work or even to know that they should use the Text Box Widget.
I initialy tried timethief’s method and spend a lot of time trying to get it to work. This is a much simpler, easier and quicker solution.
This is the first time I’ve used the support forum where I needed to include unformatted code. I didn’t realize it was going to translate the code, so sorry for all the false starts.
I’m hoping to save a lot of people the grief I went through trying to do what should be simple task. Ideally, WordPress may be able to make a translate widget for us and save the rest of us a lot of time.
-
Uh, so yes, you made this entire thread plus a post on your blog just to say “here’s how to link to that web page”.
-
donnagilmore,
To post code in the forums read the note below the comment box:
You can also put code in between backtick ( ` ) characters.
That said, though, it seems there is no need to continue the discussion as it has been determined that you can not use the Google Translate widget code on wp.com—
closing the thread…
- The topic ‘Google Translator using Text Widget’ is closed to new replies.