Need help? Check out our Support site, then


Translate your blog into different languages

  1. This conversation

    http://en.forums.wordpress.com/topic/how-to-add-google-translator-gadget-to-my-wp-blog

    led to improvising the code to translate wordpress.com blogs into different languages. Since WP won't allow you to have script, it is not possible to have Google Translate gadget show up as is. However, below code could help you achieve the same.

    Here's how you can use this code for your blog.

    Copy/paste everything below into a text widget but anywhere you see the word "ismailimail" replace it with your own blog address. It works like a charm.

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

  3. Excellent, I was looking just for that.

    Thank you :)

  4. here's what i'm wondering. i did all of the above. unfortunately, since the basic address takes someone to the most recent post, if I am at the Introduction page and hit "Translate" the system Translates not the Introduction but the slide show page I put in most recently. That means that anyone using the Translate feature elsewhere in the site gets not a translation of what s/he wants to read, but a translation of the couple of sentences introducing the slide show.
    Is there an improvement that can be made? Or something I should do differently? Or . . . ?
    HELP!!

  5. thesacredpath
    Staff

    You are right, but this is the best we have until WordPress adds this feature, which no one knows if they actually will, or when they will.

    Send a request in to http://wordpress.com/contact-support/ .

  6. kojin, I'm sure if I'm following your comment properly, but my understanding is that if anyone clicks on the language link, it will translate the whole blog's front page. And consequently, if they click on Older Post link at the bottom of your blog, the Google Translate will keep the translated language running for you in the frame, which means the user is always going to be in the translated mode. This is the default behavior of Google and it does its job.

  7. I wish WordPress at least give us an ability to have the same in drop down list. If Archive and category widget can have a drop down list then there is a possibility of having this code in the drop down list as well.

  8. Thanks Mr.Ismaili Mail for translation

    http://techshore.wordpress.com/

  9. lettershometoyou
    Member

    This code may work perfectly on a technical level, but if you have ever seen a machine translation of your blog in a foreign language, and if you speak that language, you would NEVER want your blog translated.

    They either garble your text to make it look like you're saying the opposite, or make it incomprehensible.

  10. Agree! But this code is the best option we have now unless one might want to translate the whole blog manually.

  11. Its Brilliant. Thanks a million ismailmail bhai
    I have already put it up on my blog
    http://investlogic.wordpress.com/

  12. fairchildonrage
    Member

    Hi everyone, using Ismailimail's code and some from Blogger Accessories' page I've done some tweaks and I can now display flag buttons instead of text!

    try this.

    <img border="0" style="cursor:pointer; cursor:hand;" alt="Translate English to Arabic" width="24" src="http://i263.photobucket.com/albums/ii150/mohamedrias/Arabic_Flag.png" height="18" title=" Translate English to Arabic "/>

    <img border="0" style="cursor:pointer; cursor:hand;" width="24" alt="Google-Translate-Chinese (Simplified) BETA" src="http://i263.photobucket.com/albums/ii150/mohamedrias/_chinese_s.png" height="18" title="Translate to Chinese (Simplified) BETA"/>

    <img border="0" style="cursor:pointer; cursor:hand;" width="24" alt="Translate English to Bulgarian" src="http://i166.photobucket.com/albums/u106/language_forum/Languages/Bulgarian_Flag.png" height="18" title="Translate to Bulgarian"/>

    <img border="0" style="cursor:pointer; cursor:hand;" width="24" alt=" Translate English to Traditional Chinese " src="http://i166.photobucket.com/albums/u106/language_forum/Languages/Mandarin_Flag.png" height="18" title="Translate to traditional Chinese"/>

    <img border="0" style="cursor:pointer; cursor:hand;" width="24" alt="Translate English to Croatian" src="http://i166.photobucket.com/albums/u106/language_forum/Languages/Croatian_Flag.png" height="18" title="Translate to Croatian"/>

    <img border="0" style="cursor:pointer; cursor:hand;" width="24" alt="Translate English to Czech" src="http://i166.photobucket.com/albums/u106/language_forum/Languages/Czech_Flag.png" height="18" title="Translate to Czech"/>

    <img border="0" style="cursor:pointer; cursor:hand;" width="24" alt="Translate English to Danish" src="http://i166.photobucket.com/albums/u106/language_forum/Languages/Danish_Flag.png" height="18" title="Translate to Danish"/>

    <img border="0" style="cursor:pointer; cursor:hand;" width="24" alt="Translate English to Dutch" src="http://i40.photobucket.com/albums/e208/winglord01/nederlands.gif" height="18" title="Translate to Dutch"/>

    <img border="0" style="cursor:pointer; cursor:hand;" width="24" alt="Translate English to Finnish" src="http://i166.photobucket.com/albums/u106/language_forum/Languages/Finnish_Flag.png" height="18" title="Translate to Finnish"/>

    <img border="0" style="cursor:pointer; cursor:hand;" width="24" alt="Translate English to French" src="http://i18.photobucket.com/albums/b120/pdhinderlie/Web%20Stuff/Flags/flag_fr.gif" height="18" title="Translate to French"/>

    <img border="0" style="cursor:pointer; cursor:hand;" width="24" alt="Translate English to German" src="http://i263.photobucket.com/albums/ii150/mohamedrias/_german_s.png" height="18" title="Translate English to German"/>

    <img border="0" style="cursor:pointer; cursor:hand;" width="24" alt="Translate English to Greek" src="http://i18.photobucket.com/albums/b120/pdhinderlie/Web%20Stuff/Flags/flag_gr.gif" height="18" title="Translate to Greek"/>

    <img border="0" style="cursor:pointer; cursor:hand;" width="24" alt="Translate English to Hindi" src="http://i323.photobucket.com/albums/nn467/techbookmark/hindi.png" height="18" title="Translate to Hindi"/>

    <img border="0" style="cursor:pointer; cursor:hand;" width="24" alt=" Translate English to Italian" src="http://i263.photobucket.com/albums/ii150/mohamedrias/_italian_s.png" height="18" title=" Translate English to Italian"/>

    <img border="0" style="cursor:pointer; cursor:hand;" width="24" alt="Google-Translate-English to Japanese BETA" src="http://i187.photobucket.com/albums/x307/Mafishioso/_japanese_s.png" height="18" title="Translate English to Japanese BETA"/>

    <img border="0" style="cursor:pointer; cursor:hand;" width="24" alt="Translate English to Korean BETA" src="http://i263.photobucket.com/albums/ii150/mohamedrias/_korean_s.png" height="18" title="Translate English to Korean BETA"/>

    <img border="0" style="cursor:pointer; cursor:hand;" width="24" alt="Translate English to Norwegian" src="http://i536.photobucket.com/albums/ff328/pmhrid/norway_flag.png" height="18" title="Translate to Norwegian"/>

    <img border="0" style="cursor:pointer; cursor:hand;" width="24" alt="Translate English to Polish" src="http://i166.photobucket.com/albums/u106/language_forum/Languages/Polish_Flag.png" height="18" title="Translate to Polish"/>

    <img border="0" style="cursor:pointer; cursor:hand;" width="24" alt="Translate English to Portuguese" src="http://i18.photobucket.com/albums/b120/pdhinderlie/Web%20Stuff/Flags/flag_pt.gif" height="18" title="Translate to Portuguese"/>

    <img border="0" style="cursor:pointer; cursor:hand;" width="24" alt="Translate English to Romanian" src="http://i166.photobucket.com/albums/u106/language_forum/Languages/Romansh_Flag.png" height="18" title="Translate to Romanian"/>

    <img border="0" style="cursor:pointer; cursor:hand;" width="24" alt="Translate English to Russian" src="http://i166.photobucket.com/albums/u106/language_forum/Languages/Russian_Flag.png" height="18" title="Translate to Russian"/>

    <img border="0" style="cursor:pointer; cursor:hand;" width="24" alt="Translate English to Spanish" src="http://i166.photobucket.com/albums/u106/language_forum/Languages/Spanish_Flag.png" height="18" title="Translate English to Spanish"/>

    <img border="0" style="cursor:pointer; cursor:hand;" width="24" alt="Translate English to Swedish" src="http://i166.photobucket.com/albums/u106/language_forum/Languages/Swedish_Flag.png" height="18" title="Translate to Swedish"/>

    see how it looks like. http://fairchildonrage.wordpress.com/

  13. fairchildonrage
    Member

    i've been searching for this a long time and finally there's something for my wordpress blog! :)

    thanks ishmailmail.

  14. fairchildonrage
    Member

    ah, just replace my URL with yours, sorry my bad :)

  15. fairchildonrage, good improvement. I also thought along the same lines and updated the code with the picture of the words in native language. The above mentioned code ran into some character encoding issues with Chrome and other browsers. Now, the image is showing the language text exactly how it should be (because it is an image). You may take a look at it at my blog.

    I earlier had the flag icons in my code but then I thought that there is no guarantee a country may be the only location where a specific language is being spoken, plus a language is not dependent upon any geographical land.

    Your blog looks great.

  16. Hey folks! There is no English? I have a Danish blog that would benefit from this option. From Danish to English. Heeeeeeeelp! Are we a bit ethnocentric inhere? This is funny. Haha!

    No seriously - how do I find the English flag same size, same graphics as the rest?

    :-D))))

  17. Really. I cant stop laughing. You English speaking guys can have all your blogs translated into all these languages. But none of the non-English blogs can have there text translated into English. Given the intentions behind such a widget - how could you make such a mistake?

    This is so king size funny.

    :-D))))

  18. fairchildonrage
    Member

    @ismailimail. it's all thanks to you. i see, i haven't noticed since it worked so well on mine whether on chrome, opera and IE it is displayed the same. where could the problem be? the theme perhaps?

    @universalgeni. it wasn't my intention to have left you out but as you can see, it was ismailimail's codes i've had some tweaks on.

    for now i could only point you to a google's translator gadget which could be found here (http://translate.google.com/translate_tools?hl=en&sl=da). unfortunately the gadget is available only in script. i'll try to figure out something but i can't really promise since most of the common widgets available are from the english medium to other languages. it is that gadget only from google which i have found to have that feature yet from a certain native language to english.

    please do check back here if you've got time. i hope ismailimail could help achieve a solution for this too. it would be much helpful for me also for there are a lot of foreign sites i too liked. :)

  19. fairchildonrage
    Member

  20. fairchildonrage
    Member

    @universalgeni. oh no! just as i suspected, the codes i wrote here were not displayed correctly! i'll just try to email you the code.

    @ismailimail. kindly try downloading the doc attachment found here at my post. --> http://fairchildonrage.wordpress.com/2008/09/27/a-google-translation-flags-widget-for-my-wp/ and try if it would work this time.

    ur right, those links i had before when encoded are just showing texts and some broken images indeed. sorry.

  21. universalgeni, you can translate any language into English using the Google Translate (go to http://translate.google.com). Consequently, you can come up with the appropriate URL by following the above example.

    fairchildonrage, I was referring to my earlier code (posted above as first comment) running into character encoding issues with Chrome and IE8 (the Chinese characters were not showing up properly) however, your flag icons are images so there is no issue there.

  22. fairchildonrage
    Member

    @ismailimail. okay, i thought otherwise. sorry :D

  23. Yes, I am actually trying but I'm a novice at this. I can't get it right. I'll try fairchildonrages's code now.

    Thanks guys. :-D)))

  24. This is a fantastic idea! You fine folks rock!

  25. Thanks for the email. IT WOOOORKS! Now I think I'll be able to figure out how to make the rest of the languages.

    Thanks a million fairchildonrage!!!!!!!!!

    :-D)))))

  26. I'll settle for the English version. I'm too stupid to figure out the rest. :-(

    :-D)))

    Thanks again!

  27. There is a small mistake in the flag version. The Swiss flag is there but it should have been the Romanian flag. This one: http://i35.tinypic.com/207upn4.jpg

  28. Also an error in the Polish translation. The letters are not "po". They should be corrected to "pl".

  29. fairchildonrage
    Member

    @universalgeni. you can do it! :D i'll try to do something like the one i sent you for other languages as well and have it updated in my post and fix some errors too. thanks!

  30. fairchildonrage
    Member

    @universalgeni. wow! you actually did it, translating danish not only in english but to different lanuguages! congrats, well done! XD

Topic Closed

This topic has been closed to new replies.

About this Topic