Increase traffic with translator
-
Hi all,
Recently, I was looking for a way to translate my WordPress.com site into different languages because many of my visitors are from non-English-speaking countries. I wasn’t 100% satisfied with the examples I found, so I blended them together to come up with my own version. Feel free to use it if you think it can help you.
1) Download a set of country flag icons. An excellent set can be found here: http://www.iconarchive.com/download/s1765/custom-icon-design/all-country-flag/customicondesign-flags-png.zip
2) Upload to WordPress whatever flags you want to represent different languages (for example, France = French, India = Hindi, etc.) For my purposes, I found the 24 x 24 pixel size worked best.
3) Create a TEXT widget and insert the following code. This example translates your site to simplified Chinese.:
<div>
<img title=”翻译” src=”**YOUR CHINA FLAG URL ON WORDPRESS GOES HERE**” alt=”翻译” />
</div>Obviously, remove **YOUR SITE URL GOES HERE** and add your WordPress URL, then do similarly with your image location.
I made the image title and alt tags “翻译” because it is the Mandarin symbol for translate. So, when a reader puts their mouse over the Chinese flag in your widget, a little box will pop up saying 翻译.
4) Add more languages by copying the code between the DIV tags. Read the copied code until you find %7Czh. The zh in this case is what tells Google to translate your site to simplified Chinese. Remove the zh and add the language of your choice from the cheat sheet below:
Spanish = es
(Remember to change your image and alt tags to “Traducir”, which is Spanish for “Translate”)So, to translate to Mandarin AND Spanish, you text widget would have the code:
<div>
<img title=”翻译” src=”**YOUR CHINA FLAG URL ON WORDPRESS GOES HERE**” alt=”翻译” /><img title=”Traducir” src=”**YOUR SPAIN FLAG URL ON WORDPRESS GOES HERE**” alt=”Traducir” />
</div>Other languages and tags are:
Hindi = hi and tags = “अनुवाद करना”
Arabic = ar and tags = “ترجم”
Portuguese = pt and tags = “Traduzir”
Russian = ru and tags = “переводить”
Japanese = ja and tags = “翻訳する”
German = de and tags = “Übersetzen”
Malay = ms and tags =”Terjemah”
Korean = ko and tags = “해석하다”
Vietnamese = vi and tags =”Dịch”
French = fr and tags =”Traduire”
Turkish = tr and tags = “Çevirmek”
Italian = it and tags = “Tradurre”
Thai = th and tags = “แปลความ”
Polish = pl and tags = “Tłumaczyć”
Ukrainian = uk and tags = “переводити”
Hungarian = hu and tags = “Fordít”
Greek = el and tags = “μεταφράζω”
Bulgarian = bg and tags = “превеждам”5) Save your widget and test the translation links on your site.
The code (and my explanation) might seem a bit messy, but the final result is great and it’s given my traffic a huge boost. If you have any questions, just ask.
http://mikeonbike.wordpress.com/
The blog I need help with is: (visible only to logged in users)
-
Moderators, please delete this post. The code did not copy properly. My sincere apologies.
-
Of course it didn’t. You didn’t use CODE tags.
This works as a translator: http://onecoolsitebloggingtips.com/2011/02/14/translation-widget-for-wordpress-com-blogs/
- The topic ‘Increase traffic with translator’ is closed to new replies.