Translate your blog into different languages
-
This conversation
https://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>
-
-
-
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!! -
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/ .
-
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.
-
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.
-
-
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.
-
Agree! But this code is the best option we have now unless one might want to translate the whole blog manually.
-
Its Brilliant. Thanks a million ismailmail bhai
I have already put it up on my blog
http://investlogic.wordpress.com/ -
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.
see how it looks like. http://fairchildonrage.wordpress.com/
-
i’ve been searching for this a long time and finally there’s something for my wordpress blog! :)
thanks ishmailmail.
-
-
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.
-
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))))
-
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))))
-
@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. :)
-
@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.
- The topic ‘Translate your blog into different languages’ is closed to new replies.