Need help? Check out our Support site, then


Google Translate widget

  1. I got an idea when I was sitting and translated WordPress to Danish, yesterday.
    Couldn't it be great with a Google Translate widget, where the owner of the blog can choose, what the 'from language' shall be.
    And then the visiter at the blog, can change the 'to language', to a language they speak.

    Example my blog is on Danish and then I could have the widget sitting in my sidebar on my blog, with settings set to Danish in the 'from language' and the visiter could choose example English as the 'to language'.

    I know that the translation wouldn't be 100% correct, but then will be almost correct.

    I know that you already can go to http://translate.google.com and set the URL address into the text-box and then, it will translate the hole page to the language you choose.

    But with this widget, you will be available to translate the page, directly from the blog.

    What do you think about this idea?

  2. Google offers already this service here: http://translate.google.com/translate_tools
    But when I'm trying to put it into a Text / HTML box in my sidebar, then are just typing the code on the blog, instead of showing the widget.

    I'm getting this code from Google:
    <div id="google_translate_element"></div><script>
    function googleTranslateElementInit() {
    new google.translate.TranslateElement({
    pageLanguage: 'da'
    }, 'google_translate_element');
    }
    </script><script src="http://translate.google.com/translate_a/element.js?cb=googleTranslateElementInit"></script>

    And when I'm typing the code into a Text / HTML box, then will cut the last part of the away (The script part).

    I have tried this many times before, what are the problem?
    Isn't scripts allowed to use at the blog, or what?

    Thank you in advance!

  3. I think it's because the code is a javascript, and that is not allowed here at WordPress.com like iframe too.

    But can't you make this widget available for use, as a widget on WordPress.com?

  4. This is the link to Google translation widget workaround which I located in the forum searchbox http://en.forums.wordpress.com/topic/translation-widget?replies=20#post-304621

  5. Thank you for that tip.
    That can be a temporary method, until further notice. :)

    But I think it would be better with a scroll down.

  6. You're welcome.

  7. You can add a small text box which contains a scroll (you may have to search the archive here for the code). There was a suggestion for WordPress.com to provide an empty drop-down widget which can be populated with the text/links of choice. If we ever get one, I'd be the first one adding translation codes into it.

  8. Yes, it was a dropdown box, that I meant.
    I wrote it wrong.

    Yesterday I tried to make a dropdown for this things, but the Text / HTML box didn't allowed it.
    I think the Text / HTML box is only for text, and very simple codes, like links and pictures.
    Nothing other.

    I would love if WordPress.com could open for javascripts and so on, I do not believe there would be someone who would use it for anything criminal.
    And if there were, they would indeed be able to do very small things.

    If they finaly want to make some bad things for other people, I think they would start up their own site, because there is many free services, where you can make your all own website.

    So please WordPress.com open for this feature! :-)

  9. Java/scripts won't be allowed here, but if they want they can possibly create a site wide widget for an empty drop-down list which can be populated with text or links. However, the Google code for translation works fine, so there is no issue.

  10. I concur with all here, google translate is a good idea on WordPress. I was hoping to get that running too, but ran across the same problems. A link is ok I suppose but is would be nice to see the transition right on the blog.
    I would also cast a vote for google analytics as well.

Topic Closed

This topic has been closed to new replies.

About this Topic