how to add google translator gadget to my WP blog?

  • Author
    Posts
  • #259254

    stockrants
    Member

    how to add google translator gadget to my WP blog?

    #259363

    bubel
    Staff

    Are you referring to this? http://translate.google.com/translate_tools

    Such scripts are not permitted on WordPress.com for security purposes.

    #259395

    ismailimail
    Member

    Check my text widget (click on my name, scroll a little and look for translation box on the right hand side). This is a work around to do the same thing.

    #259405

    dlager
    Member

    That is a very clever idea ismailimail. thanks.

    #259711

    dlager
    Member

    ishmailimail i am not sure where to contact you on your blog.
    I’d like to what you have done on your translator widget on your blog and make a similar translation widget for my blog by following your example.

    I will give you credit and a link back if you don’t mind.

    #259712

    justjennifer
    Moderator

    See, ismailimail? Please write a tutorial! :)

    #259713

    ismailimail
    Member

    Okay, will do soon.

    dlager, you can email me through my About section, I have an email address there, I can forward you the code which you can insert in your Text widget replacing my links with your blog links. You will just need to setup Pipes account (if you have Yahoo account already then that would do).

    #259714

    kykyscrap
    Member

    I’m interested in this widget too :)

    #259715

    kykyscrap
    Member

    I wrote you an email through your “feedback” :)

    #259716

    ismailimail
    Member

    As a starter, here’s how I am getting the links from Google Translate for my blog to various different languages:

    http://translate.google.com/translate?hl=en&langpair=en|nl&u=http://ismailimail.wordpress.com/

    Above translate from English to Dutch. If you replace my blog name with yours and copy/paste the above link in your browser’s address bar, then you should be able to see the translated page of your blog into Dutch.

    Here’s one for English to German

    http://translate.google.com/translate?hl=en&langpair=en|de&u=http://yourblogname.wordpress.com/

    Here’s one for English to Greek

    http://translate.google.com/translate?hl=en&langpair=en|el&u=http://yourblogname.wordpress.com/

    Replace yourblogname with your blog address at wordpress.com

    Here is how you can get above links for all the other languages.

    Go to http://translate.google.com

    Type your blog address in Translate a Web page

    Select English >> other language, click Translate.

    Look at the very last two characters in your browser’s address bar.

    For example, if you selected English >> Japanese, then the last two characters are ja. And that’s the keyword.

    Every time you translate your blog into different language, Google will only be replacing the two character keywords depending on the language.

    Now you may notice that the URL Google is providing (in your browser’s address bar) is slightly different than what I have provided above. I have only cleaned it up for clarity. From my code above, if you replace de (next to en|, with ja, as in

    ...?hl=en&langpair=en|ja&u=....

    and by keeping everything else as is…

    then you will get your blog translated into Japanese.

    Consequently, you can find all these two character language codes by manually and individually translating your blog into different languages.

    Here’s the few I did for myself

    (Arabic) http://translate.google.com/translate?hl=en&langpair=en|ar&u=http://ismailimail.wordpress.com/
    (Bulgarian) http://translate.google.com/translate?hl=en&langpair=en|bg&u=http://ismailimail.wordpress.com/
    (Chinese Simplified) http://translate.google.com/translate?hl=en&langpair=en|zh-CN&u=http://ismailimail.wordpress.com/
    (Chinese Traditional) http://translate.google.com/translate?hl=en&langpair=en|zh-TW&u=http://ismailimail.wordpress.com/
    (Croatian) http://translate.google.com/translate?hl=en&langpair=en|hr&u=http://ismailimail.wordpress.com/
    (Czech) http://translate.google.com/translate?hl=en&langpair=en|cs&u=http://ismailimail.wordpress.com/
    (Danish) http://translate.google.com/translate?hl=en&langpair=en|da&u=http://ismailimail.wordpress.com/
    (Dutch) http://translate.google.com/translate?hl=en&langpair=en|nl&u=http://ismailimail.wordpress.com/
    (Finish) http://translate.google.com/translate?hl=en&langpair=en|fi&u=http://ismailimail.wordpress.com/
    (French) http://translate.google.com/translate?hl=en&langpair=en|fr&u=http://ismailimail.wordpress.com/
    (German) http://translate.google.com/translate?hl=en&langpair=en|de&u=http://ismailimail.wordpress.com/
    (Greek) http://translate.google.com/translate?hl=en&langpair=en|el&u=http://ismailimail.wordpress.com/
    (Hindi) http://translate.google.com/translate?hl=en&langpair=en|hi&u=http://ismailimail.wordpress.com/
    (Italian) http://translate.google.com/translate?hl=en&langpair=en|it&u=http://ismailimail.wordpress.com/

    Hopefully you now got some ideas on how to grab translated URL for your blog. It will now just be a matter of plugging these URLs into Text Widget with either a flag picture or something else.

    #259717

    ismailimail
    Member

    If you want to provide RSS links for your translated blog, then the easiest way is to just go to my Pipes and you can copy my Pipes as yours and replace my blog links with your blog links.

    Here’s all my pipes in open.

    http://pipes.yahoo.com/pipes/search?q=ismailimail&x=0&y=0

    The very first pipe is translating English into Russian. So move over your mouse and select View Source. Then do Save a copy (right hand side top).

    Now, you can replace my blog’s RSS links with yours (in Fetch Feed box). You can even delete extra links if you want as I have plugged in two blogs into one. And after saving the pipe when you Run it, you should see a translated RSS feed of your own.

    You can then grab the RSS feed of this Pipe and plug it into the Text Widget.

    I have found Yahoo Pipes translation to be not as reliable as Google (though these two are different services altogether). Various times, the Yahoo Pipes times out while translating, but it does work occasionally.

    #259718

    justjennifer
    Moderator

    Thank you so much for sharing how you did it. :) Saved this topic as Favorite!

    #259719

    ismailimail
    Member

    Here, below code is more simpler. You will just replace my blog address with yours and copy/paste everything into Text Widget.

    Translate this blog into different languages...
    <br />
    <br />
    <a href="http://translate.google.com/translate?hl=en&amp;langpair=en|ar&amp;u=http://ismailimail.wordpress.com/" title="Arabic">العربية</a>
    <br />
    <a href="http://translate.google.com/translate?hl=en&amp;langpair=en|bg&amp;u=http://ismailimail.wordpress.com/" title="Bulgarian">
    Български</a>
    <br />
    <a href="http://translate.google.com/translate?hl=en&amp;langpair=en|zh-CN&amp;u=http://ismailimail.wordpress.com/" title="Chinese Simplified">中文(简体)</a>
    <br />
    <a href="http://translate.google.com/translate?hl=en&amp;langpair=en|zh-TW&amp;u=http://ismailimail.wordpress.com/" title="Chinese Traditional">中文(繁體)</a>
    <br />
    <a href="http://translate.google.com/translate?hl=en&amp;langpair=en|hr&amp;u=http://ismailimail.wordpress.com" title="Croatian">Hrvatski</a>
    <br />
    <a href="http://translate.google.com/translate?hl=en&amp;langpair=en|cs&amp;u=http://ismailimail.wordpress.com/" title="Czech">Česky</a>
    <br />
    <a href="http://translate.google.com/translate?hl=en&amp;langpair=en|da&amp;u=http://ismailimail.wordpress.com/" title="Danish">Dansk</a>
    <br />
    <a href="http://translate.google.com/translate?hl=en&amp;langpair=en|nl&amp;u=http://ismailimail.wordpress.com/" title="Dutch">Nederlands</a>
    <br />
    <a href="http://translate.google.com/translate?hl=en&amp;langpair=en|fi&amp;u=http://ismailimail.wordpress.com/" title="Finnish">Suomi</a>
    <br />
    <a href="http://translate.google.com/translate?hl=en&amp;langpair=en|fr&amp;u=http://ismailimail.wordpress.com/" title="French">Français</a>
    <br />
    <a href="http://translate.google.com/translate?hl=en&amp;langpair=en|de&amp;u=http://ismailimail.wordpress.com/" title="German">Deutsch</a>
    <br />
    <a href="http://translate.google.com/translate?hl=en&amp;langpair=en|el&amp;u=http://ismailimail.wordpress.com/" title="Greek">Ελληνική</a>
    <br />
    <a href="http://translate.google.com/translate?hl=en&amp;langpair=en|hi&amp;u=http://ismailimail.wordpress.com/" title="Hindi">
    हिन्दी</a>
    <br />
    <a href="http://translate.google.com/translate?hl=en&amp;langpair=en|it&amp;u=http://ismailimail.wordpress.com/" title="Italian">
    Italiano</a>
    <br />
    <a href="http://translate.google.com/translate?hl=en&amp;langpair=en|ja&amp;u=http://ismailimail.wordpress.com/" title="Japanese">
    日本語</a>
    <br />
    <a href="http://translate.google.com/translate?hl=en&amp;langpair=en|ko&amp;u=http://ismailimail.wordpress.com/" title="Korean">한국어</a>
    <br />
    <a href="http://translate.google.com/translate?hl=en&amp;langpair=en|no&amp;u=http://ismailimail.wordpress.com/" title="Norwegian">Norsk</a>
    <br />
    <a href="http://translate.google.com/translate?hl=en&amp;langpair=en|po&amp;u=http://ismailimail.wordpress.com/" title="Polish">Polski</a>
    <br />
    <a href="http://translate.google.com/translate?hl=en&amp;langpair=en|pt&amp;u=http://ismailimail.wordpress.com/" title="Portuguese">Português</a>
    <br />
    <a href="http://translate.google.com/translate?hl=en&amp;langpair=en|ro&amp;u=http://ismailimail.wordpress.com/" title="Romanian">Română</a>
    <br />
    <a href="http://translate.google.com/translate?hl=en&amp;langpair=en|ru&amp;u=http://ismailimail.wordpress.com/" title="Russian">
    Русский</a>
    <br />
    <a href="http://translate.google.com/translate?hl=en&amp;langpair=en|es&amp;u=http://ismailimail.wordpress.com/" title="Spanish">
    Español</a>
    <br />
    <a href="http://translate.google.com/translate?hl=en&amp;langpair=en|sv&amp;u=http://ismailimail.wordpress.com/" title="Swedish">Svenska</a>
    #259720

    dlager
    Member

    Thanks ismailimail.
    I have my translation widget now. I put mine in a table.
    I just need to make it look a little cleaner.

    #259721

    raincoaster
    Member

    I hope they make this a sticky thread.

    #259722

    dlager
    Member

    I hope they make this a sticky too.
    I made a post on my blog thanking you, ismailimail. andd i link referred to this thread.
    I now have a page where my blog can be translated into 21 languages.

    #259723

    I keep a text file full of copy and paste stuff for here in the forums, and I added the link to it so I’ll always have it.

    #259724

    teck07
    Member

    Thank you ismailimail,

    Quick note this code below translate English to English instead of Polish

    Polski

    #259728

    raincoaster
    Member

    We could just keep bumping it. I know we harsh on people for bumping other threads, but dudes! It’s time to pull rank!

    #259729

    teck07
    Member

    Article update I just wrote article about this
    and credited you ismailimail, & I also linked back
    to this thread…

    Article-> New Translate Widget added To The Side Bar

    Teck

The topic ‘how to add google translator gadget to my WP blog?’ is closed to new replies.