Translation widget

  • Google have recently added few more languages to the translation service. Based upon this conversation, here is the updated code in it’s simplest form.

    How to use:
    1. Copy the below code.
    2. Paste in Notepad.
    3. Bring your cursor at the top of the page in Notepad.
    3. Go to Edit – Replace (Ctrl+H).
    4. Type ismailimail where it says “Find what:”.
    5. Type your blog name (minus the wordpress.com) where it says “Replace with:”.
    6. Click Replace all.
    7. Copy/paste the code in WordPress.com’s text widget.

    That’s it.

    Translate this blog into different languages...
    <br /><br />
    <a href="http://translate.google.com/translate?hl=en&amp;langpair=en|sq&amp;u=http://ismailimail.wordpress.com/" title="Albanian">Albanian</a>
    
    <a href="http://translate.google.com/translate?hl=en&amp;langpair=en|ar&amp;u=http://ismailimail.wordpress.com/" title="Arabic">Arabic</a>
    
    <a href="http://translate.google.com/translate?hl=en&amp;langpair=en|bg&amp;u=http://ismailimail.wordpress.com/" title="Bulgarian">Bulgarian</a>
    
    <a href="http://translate.google.com/translate?hl=en&amp;langpair=en|ca&amp;u=http://ismailimail.wordpress.com/" title="Catalan">Catalan</a>
    
    <a href="http://translate.google.com/translate?hl=en&amp;langpair=en|zh-CN&amp;u=http://ismailimail.wordpress.com/" title="Chinese Simplified">Chinese Simplified</a>
    
    <a href="http://translate.google.com/translate?hl=en&langpair=en|zh-TW&u=http://ismailimail.wordpress.com/" title="Chinese Traditional">Chinese Traditional</a>
    
    <a href="http://translate.google.com/translate?hl=en&langpair=en|hr&u=http://ismailimail.wordpress.com/" title="Croatian">Croatian</a>
    
    <a href="http://translate.google.com/translate?hl=en&langpair=en|cs&u=http://ismailimail.wordpress.com/" title="Czech">Czech</a>
    
    <a href="http://translate.google.com/translate?hl=en&langpair=en|da&u=http://ismailimail.wordpress.com/" title="Danish">Danish</a>
    
    <a href="http://translate.google.com/translate?hl=en&langpair=en|nl&u=http://ismailimail.wordpress.com/" title="Dutch">Dutch</a>
    
    <a href="http://translate.google.com/translate?hl=en&langpair=en|et&u=http://ismailimail.wordpress.com/" title="Estonian">Estonian</a>
    
    <a href="http://translate.google.com/translate?hl=en&langpair=en|tl&u=http://ismailimail.wordpress.com/" title="Filipino">Filipino</a>
    
    <a href="http://translate.google.com/translate?hl=en&langpair=en|fi&u=http://ismailimail.wordpress.com/" title="Finnish">Finnish</a>
    
    <a href="http://translate.google.com/translate?hl=en&langpair=en|fr&u=http://ismailimail.wordpress.com/" title="French">French</a>
    
    <a href="http://translate.google.com/translate?hl=en&langpair=en|gl&u=http://ismailimail.wordpress.com/" title="Galician">Galician</a>
    
    <a href="http://translate.google.com/translate?hl=en&langpair=en|de&u=http://ismailimail.wordpress.com/" title="German">German</a>
    
    <a href="http://translate.google.com/translate?hl=en&langpair=en|el&u=http://ismailimail.wordpress.com/" title="Greek">Greek</a>
    
    <a href="http://translate.google.com/translate?hl=en&langpair=en|iw&u=http://ismailimail.wordpress.com/" title="Hebrew">Hebrew</a>
    
    <a href="http://translate.google.com/translate?hl=en&langpair=en|hi&u=http://ismailimail.wordpress.com/" title="Hindi">Hindi</a>
    
    <a href="http://translate.google.com/translate?hl=en&langpair=en|hu&u=http://ismailimail.wordpress.com/" title="Hungarian">Hungarian</a>
    
    <a href="http://translate.google.com/translate?hl=en&langpair=en|id&u=http://ismailimail.wordpress.com/" title="Indonesian">Indonesian</a>
    
    <a href="http://translate.google.com/translate?hl=en&langpair=en|it&u=http://ismailimail.wordpress.com/" title="Italian">Italian</a>
    
    <a href="http://translate.google.com/translate?hl=en&langpair=en|ja&u=http://ismailimail.wordpress.com/" title="Japanese">Japanese</a>
    
    <a href="http://translate.google.com/translate?hl=en&langpair=en|ko&u=http://ismailimail.wordpress.com/" title="Korean">Korean</a>
    
    <a href="http://translate.google.com/translate?hl=en&langpair=en|lv&u=http://ismailimail.wordpress.com/" title="Lativian">Lativian</a>
    
    <a href="http://translate.google.com/translate?hl=en&langpair=en|lt&u=http://ismailimail.wordpress.com/" title="Lithuanian">Lithuanian</a>
    
    <a href="http://translate.google.com/translate?hl=en&langpair=en|mt&u=http://ismailimail.wordpress.com/" title="Maltese">Maltese</a>
    
    <a href="http://translate.google.com/translate?hl=en&langpair=en|no&u=http://ismailimail.wordpress.com/" title="Norwegian">Norwegian</a>
    
    <a href="http://translate.google.com/translate?hl=en&langpair=en|pl&u=http://ismailimail.wordpress.com/" title="Polish">Polish</a>
    
    <a href="http://translate.google.com/translate?hl=en&langpair=en|pt&u=http://ismailimail.wordpress.com/" title="Portuguese">Portuguese</a>
    
    <a href="http://translate.google.com/translate?hl=en&langpair=en|ro&u=http://ismailimail.wordpress.com/" title="Romanian">Romanian</a>
    
    <a href="http://translate.google.com/translate?hl=en&langpair=en|ru&u=http://ismailimail.wordpress.com/" title="Russian">Russian</a>
    
    <a href="http://translate.google.com/translate?hl=en&langpair=en|sr&u=http://ismailimail.wordpress.com/" title="Serbian">Serbian</a>
    
    <a href="http://translate.google.com/translate?hl=en&langpair=en|sk&u=http://ismailimail.wordpress.com/" title="Slovak">Slovak</a>
    
    <a href="http://translate.google.com/translate?hl=en&langpair=en|sl&u=http://ismailimail.wordpress.com/" title="Slovenian">Slovenian</a>
    
    <a href="http://translate.google.com/translate?hl=en&langpair=en|es&u=http://ismailimail.wordpress.com/" title="Spanish">Spanish</a>
    
    <a href="http://translate.google.com/translate?hl=en&langpair=en|sv&u=http://ismailimail.wordpress.com/" title="Swedish">Swedish</a>
    
    <a href="http://translate.google.com/translate?hl=en&langpair=en|th&u=http://ismailimail.wordpress.com/" title="Thai">Thai</a>
    
    <a href="http://translate.google.com/translate?hl=en&langpair=en|tr&u=http://ismailimail.wordpress.com/" title="Turkish">Turkish</a>
    
    <a href="http://translate.google.com/translate?hl=en&langpair=en|uk&u=http://ismailimail.wordpress.com/" title="Ukrainian">Ukrainian</a>
    
    <a href="http://translate.google.com/translate?hl=en&langpair=en|vi&u=http://ismailimail.wordpress.com/" title="Vietnamese">Vietnamese</a>
  • Wow, you have done outstanding work on this. Thanks so much!

  • Thanks for this helpful post,,,but i modified more, so the widget can have a logo of google translate

    this is the link code :

    <a title=”English” href=”http://translate.google.com/translate?hl=id&langpair=id|en&u=“paste your link blog here“img src=”paste link image location google translate disini” border=”0″ alt=””

    sample link google translate image location : http://i43.tinypic.com/1zbcwtl.gif

  • Thanks for updating your excellent thread, ismailimail. Bookmarked. :)

  • This code appears to be translating foreign language blogs into English by auto-detecting the language.

    http://translate.google.com/translate?hp&hl=en&u=http://yourblogaddress.wordpress.com?sl=auto&tl=en

    Give that a try, but replace the word “yourblogaddress” with your blog name.

  • Hello all,
    This is a great conversation. My question is very simple. I only need to translate my Spanish blog into English. I don’t really need all the other flags etc. Is there a code or something that I can use only with Spanish and English flag?

    Thank you so much for the help guys!!

  • Or a have a idea, create a page “Options” and put this links ;)

  • @ismailimail Thanks for your code. I have been trying it on my blog but I have a question. Is there a way to customize the code to individual posts on my blog?

    I noticed that the code translates all my blog posts, starting each time with the most recent one. I would like the translation to be done only on the post that the reader goes to. Is this possible?

  • @shadmia, I think it may not be possible unless you copy the code in each posts. However, I have seen the translation frame stays as is when reader browse around other posts within the same blog. So practically, people can get the translated posts as long as they stay within the frame.

  • @ismailimail, Thanks I will keep playing with it.

  • Love this. But I have the following issue. It somehow does not see the latest post. If you click on it the lats page pops up not the current one. If you go to the current all is fine…

  • Thank you very much, I was looking for that, but to translate from Spanish, just an easy change in your code.

    Javier

    lacienciaparatodos.wordpress.com

    In English, thanks to you http://translate.google.com/translate?hl=es&langpair=es|en&u=http://lacienciaparatodos.wordpress.com/

  • Hi Folks,

    I tried all and research even more to translate my blog from PORTUGUESE to english…can someone help?
    I put the code for portuguese as pt…but still didn’t work……Thanks

  • Hi Folks,

    This was the feedback that I got from the support team…
    I did as he said as pages – but it ddoes not look good as yours…if someone has a hint, I will be grateful.

    By the way, my blog is http://paginasverdesbrasil.wordpress.com

    Cheers!

    ———- Forwarded message ———-
    From: Anthony – WordPress.com <support@wordpress.com>
    Date: 2009/5/12
    Subject: [WordPress #302371]: Languages – that none of the codes did work.
    To: [Email Removed By T3ck]
    Hi,
    There are currently no built-in translation tools within WordPress.com. You can, however, translate your blog using Google Translate – http://translate.google.com – and then link the translated versions from your blog.

    Best,
    Anthony
    Automattic | WordPress.com

  • Hi, this link is working. It translates your Portuguese blog into English.

    http://translate.google.com/translate?hp&hl=en&u=http://paginasverdesbrasil.wordpress.com?sl=auto&tl=en

    The translation may not be accurate since it is machine based.

  • Sorry, right click on below link and do copy.

    http://translate.google.com/translate?hp&hl=en&u=http://paginasverdesbrasil.wordpress.com?sl=auto&tl=en
  • @pomei

    It’s best not to add email addresses in a public forum because the spam bots will have fun spamming the email address. So I went ahead and removed the email for you.

  • @ismailimail
    please can you help me with the link for translation of my blog from Romanian to English?
    my blog is http://marianaiosif.wordpress.com/

    It will be a great help for me! Thank you,

  • This is DUMB why cant we just get the google widget and put it on our site

  • The google widget requires javascript and javascript is not allowed due to security concerns. Facebook and some others have been brought down by bad script added by users and wordpress is very security conscious. This is a multi-user platform which means we all share the same underlying files. Bad script introduced by one could bring down many.

    Code

  • The topic ‘Translation widget’ is closed to new replies.