Grow your audience by helping him to translate his native language.Every people can understand his native language.To translate language to native language we use Google Translator which supports more than 55 language.
When the Translator will not work?
- If you have added meta tags that prevent translation of Page.
- If you have wrapped using
<code>
tag. - Using notranslate classes.eg.
<span class=”notranslate”>Blogger Rounder</span>
.If you translate this page blogger rounder will not be translated
Translation Code.
Language | Code | Language | Code |
AFRIKAANS | af | ITALIAN | it |
ALBANIAN | sq | JAPANESE | ja |
ARABIC | ar | KOREAN | ko |
BELARUSIAN | be | LATVIAN | lv |
BULGARIAN | bg | LITHUANIAN | lt |
CATALAN | ca | MACEDONIAN | mk |
CHINESE | zh | MALAY | ms |
CHINESE_SIMPLIFIED | zh-CN | MALTESE | mt |
CHINESE_TRADITIONAL | zh-TW | NORWEGIAN | no |
CROATIAN | hr | PERSIAN | fa |
CZECH | cs | POLISH | pl |
DANISH | da | PORTUGUESE | pt |
DUTCH | nl | PORTUGUESE_PORTUGAL | pt-PT |
ENGLISH | en | ROMANIAN | ro |
ESTONIAN | et | RUSSIAN | ru |
FILIPINO | tl | SERBIAN | sr |
FINNISH | fi | SLOVAK | sk |
FRENCH | fr | SLOVENIAN | sl |
GALICIAN | gl | SPANISH | es |
GERMAN | de | SWAHILI | sw |
GREEK | el | SWEDISH | sv |
HAITIAN_CREOLE | ht | TAGALOG | tl |
HEBREW | iw | THAI | th |
HINDI | hi | TURKISH | tr |
HUNGARIAN | hu | UKRAINIAN | uk |
ICELANDIC | is | VIETNAMESE | vi |
INDONESIAN | id | WELSH | cy |
IRISH | ga | YIDDISH | yi |
Getting Flags.
To get the Flags just go to following sites
Download those flags and host it in picture hosting and get direct links.
Adding It in Blogger
- Go to Blogger Dashboard>layout or Design
- Click on Add a Gadget
- Select HTML/JavaScript
- Add the Google Translator codes.
- Click on Save Button
Adding it in Word Press
- Go to Word Press Dashboard
- In Appearance click on Available widget
- Drag Text Widget to Sidebar
- Add the Google Translator codes at Word Press
- Click on Save.
Google Translator Codes
The codes of Google Translator Looks this
<!-- Translate flag BEGIN --> <!-- by bloggerrounder.blogspot.com --> <a class="br-gtranslate" onclick="href='http://translate.google.com/translate?u='+encodeURIComponent(location.href)+'&langpair=SourceLangCode|TargetLangCode&hl=InterfaceLangCode'" title="Translate to TargetLangName" target="_blank"><img border="0" style="cursor: pointer;" src="FlagIconUrl" /></a> <!-- Translate flag END –>
Where,
SourceLangCode
is the orginal language code of URL.Source Language code of Blogger Rounder is en .TargetLangCode
is the code which you want the page to be translated when the flag icon is clicked.For eg if I want to translate Blogger Rounder in Hindi theTargetLangCode
is hi .InterfaceLangCode
language is Google bar language.From Above example InterfaceLangCode is hi (hindi) .TargetLangName
is the name of language which we are going to translate.For example we are going to translate english to hindi thenTargetLangName
is Hindi .
For above example ,
If we want blogger rounder to translate in hindi then Google Translater codes is this .
<!-- Translate flag BEGIN --> <!-- by bloggerrounder.blogspot.com --> <a class="br-gtranslate" onclick="href='http://translate.google.com/translate?u='+encodeURIComponent(location.href)+'&langpair=en|hi&hl=hi'" title="Translate to Hindi"><img border="0" style="cursor: pointer;" src="http://www.famfamfam.com/lab/icons/flags/flags_preview_large.png" /></a> <!-- Translate flag END –>
In browser that codes will be flag like this
Styling the Widget
- To style the widget just add following CSS codes.
.br-gtranslate { /*CSS Styling codes Here*/ }
- If you don’t know how to add CSS then refer here.
Enjoy! Comment us if you have any queries.
Subscribe for free
Thanks for visiting Blogger Rounder.We can subscribe to Blogger Rounder's by RSS feed or email updates.
0 comments on "Google Translator with Flag.":
Post a Comment
We Love To Hear Comments from You.Comments are Welcome.You can comment here regarding this Post.If it is not related with the post you can ask a question by Contacting Us.Before Comment Please Subscribe To our RSS or email updates.Publishing Spam Comment is Not allowed.If you want to Add Code then Please Encode it.
Simple Tags like <a> ,<strong>,<b>,<em> and <i> are allowed for preventing spam