How to Use Google Transliteration API In Regional Language Blogger Blogs

January 24, 2011   /   Posted by in Blogger Comments, Blogger Tricks, Blogger Widgets 15 Comments
How to Use Google Transliteration API In Regional Language Blogger Blogs

What is Transliteration ?

Transliteration is the process of phonetically converting a word written in one script into another. Transliteration should not be confused with translation, which involves a change in language while preserving meaning. With transliteration, it is the sound of the words that are converted from one alphabet to the other.

The majority of blogs are in English.Though there are many regional languages spoken but there are a few blogs published in regional languages. The main reason being the unavailability of editors for regional languages.

Blogger Platform is available in almost all Languages. But is not available to Write or Commenting in regional language for visiters.

This plugin offers language transliteration for visitors to Comment or to Write in regional language

The Transliteration API currently supports transliteration from the English version to the scripts of the following languages:

Amharic, Arabic, Bengali, Greek, Gujarati, Hindi, Kannada, Malayalam, Marathi, Nepali, Persian, Punjabi, Russian, Sanskrit, Serbian, Tamil, Telugu, Tigrinya and Urdu.

Here is an Example of Textarea to Write Hindi

Type in Hindi (Press Ctrl+g to toggle between English and Hindi)


How to Add this Transliteration Text Box to Blogger?

There are two steps
a.Adding Script Code
b.Adding Html Code

Adding Script Code

Go to Blogger Dashboard > Design > Edit HTML

Tick on Expand Widgets Check box

Find </head> tag and place Bellow Code before It!

<script src="https://www.google.com/jsapi" type="text/javascript">
</script>
<script type="text/javascript">
    google.load("elements", "1", {
        packages: "transliteration"
    });

    function onLoad() {
        var options = {
            sourceLanguage: google.elements.transliteration.LanguageCode.ENGLISH,
            destinationLanguage: [google.elements.transliteration.LanguageCode.HINDI],
            shortcutKey: 'ctrl+g',
            transliterationEnabled: true
        };

        var control = new google.elements.transliteration.TransliterationControl(options);
        control.makeTransliteratable(['transliterateTextarea']);
    }
    google.setOnLoadCallback(onLoad);
</script>
Change Destination language code ‘HINDI‘ with yours and it must be in Block Letters

Available Languages :-

  • AMHARIC
  • ARABIC
  • BENGALI
  • GREEK
  • GUJARATI
  • HINDI
  • KANNADA
  • MALAYALAM
  • MARATHI
  • NEPALI
  • PERSIAN
  • PUNJABI
  • RUSSIAN
  • SANSKRIT
  • SERBIAN
  • TAMIL
  • TELUGU
  • TIGRINYA
  • URDU

Adding HTML Code

This is a HTML code, and you can add this that where it you want (i.e in Sidebar, in Contact Form, Or in above Comment Form etc,.)

<div class="Google-transliterate-Way2blogging">
    Type in Hindi (Press Ctrl+g to toggle between English and Hindi)<br>
    <textarea id="transliterateTextarea" style="width:600px;height:200px"></textarea>
<span style="font-weight:bold;font-size:10px;float:right;margin:5px;"><a href="/index.html">+Grab this</a></span>
</div>

How to add this Text Box Above Blogger Comment Form?

  1. Search bellow two tags
    <b:if cond='data:post.embedCommentForm'>
    <b:include data='post' name='comment-form'/>
  2. In between these two tags Put above HTML Code that i am given.

Thats all!

Do you Like this Article?

rss twitter facebook
Get Subscribe to Free Email Updates!!
*Your email address will not be shared with anyone.

15 Comments on “How to Use Google Transliteration API In Regional Language Blogger BlogsAdd Comment

  1. blogtaknik April 22, 2011 12:44 pm #

    very nice

  2. blogtaknik April 22, 2011 6:30 pm #

    steps a.Adding Script Code is not work in my blog.. my blog name is www.blogtaknik.blogspot.com

  3. blogtaknik April 22, 2011 6:32 pm #

    step a is not workink in my blog my blog name is blogtaknik.blogspot.com

  4. Harish April 23, 2011 2:46 pm #

    @blogtaknik
    the file and the code is from google.com
    the page is fully loaded for it's working

  5. ஜிஎஸ்ஆர் May 27, 2011 3:29 pm #

    Dear friend i have try to add my blogger in Tamil but could not working if any idea?

  6. Harish May 27, 2011 3:55 pm #

    @ஜிஎஸ்ஆர்
    Can you provide some more Info ?
    I will help you to adding this in your blog :)

  7. KEKAYAN July 25, 2011 7:09 am #

    Dear friend i have try to add my blogger in Tamil but could not working if any idea?

  8. Abdullah Al Noman November 12, 2011 1:35 pm #

    sir pls give me a video tutorial. pls pls pls……………..

    ank00764@gmail.com

  9. shubhkarman July 20, 2012 2:01 am #

    can i use it in htm if yes then how

    • Harish July 22, 2012 12:45 am #

      yes you can! the first two steps only for html. place the both scripts in html file. that’s it!

  10. Vinay Prajapati August 26, 2012 10:48 am #

    Given JavaScript is wrong … :(

    • Harish August 27, 2012 7:47 am #

      you are wrong!!

      • Vinay Prajapati August 27, 2012 7:43 pm #

        Nops! I am right. I know you’re saying so because your given code is as per developer code.

        but it’s not working in google sidebar and in comment arean in new blogger template like simple etc.

        but try this what I am saying… :)

        1. destinationLanguage:
        2. [google.elements.transliteration.LanguageCode.HINDI], <– Remove '[' & ']' both; only square brackets
        3. shortcutKey: 'ctrl+g',
        4. transliterationEnabled: true
        5. };
        6. }; <– Remove this

    Leave a Reply

     
    © 2012 Way2blogging. Designed by +Harish, Powered by WordPress