Google Indic Transliteration WordPress Plugin

Google IndicWordPress

Today the Google Indic Team announced the launch of an API for transliteration. The API allows you to easily add transliteration functionality to text fields on your web sites.

The first thing I did is to write a plugin for allowing transliteration in WordPress posts and pages. So I did the Google Indic Transliteration WordPress Plugin. This is just the simple version. You can select the language from the Post/Page admin screen and type in the Indic language in all possible text boxes and text areas.

The plugin works only in the HTML edit mode. I am looking into enabling it for the Visual Editor too.

I hope to work on adding more functionality to make it a comprehensive WordPress plugin for Indic language (Hindi, Malayalam, Kannada, Tamil, Telugu) users.

You may download the plugin and let me know your comments.

[fblike]

I have added the following items in my task list:

[advt]

  • Enable in the Visual (tinymce) editor
  • Selectively enable in Links page
  • Confirm to WordPress plugin standards and implement auto-upgrade feature
  • Provide better UI for language on-screen selection and language indication
  • Provide better error handling
  • Provide Settings page to select the languages and set the default language for Admin
  • Enable in Comment Form and Search box
  • Select the default language automatically using Google’s automatic language detection
  • Indicate the current language as watermark background of text boxes and text areas

Do you have another item to add to the list? Let me know.

42 Comments

  1. i have installed indic IME plugin in wordpress to type in hindi but when i type it shows hindi fonts and after publishing it looks like ??????????????????. so anybody have any solution for this problem?

  2. This solution worked for me

    ###############################################

    In wp-config.php change
    define(‘DB_CHARSET’, ‘utf8’);
    to
    define(‘DB_CHARSET’, ‘utf16’);

    ###############################################

  3. Is it featured in WordPress site? it’s hard to get it in search results of WP plugins in dashboard. you need to promote it good.
    I had tried this some time back.. is it the latest version?

  4. Hi, I got this plugin installed on my Wp blog its in 2.8 version but it does not automatically change the language.. I have tried different settings from backend but this simply does not translates comments to Urdu.

    Any suggestions please?

  5. In any plugin related to Google Indic transliteration, the problem is that the wordpress database submission was working with 8 bit unicode setting which doesn’t recognize other language characters. So change it to 16 bit standard and every thing will work as expected, after the plug in is installed. I suggest WPGoogleLangTransliteration. Install it. Then,:

    In wp-config.php change
    define(‘DB_CHARSET’, ‘utf8’);
    to
    define(‘DB_CHARSET’, ‘utf16’);

  6. Hi I installed Google Indic Transliteration WordPress Plugin through my FTP. but I am not able to see language option in drop doen for Telugu nor any other indic languages mentioned. Please Help.

  7. Dear Sree,

    See when i try to put the language as Malayalam. it is not always displayed on the tinym editor. and also i am only seeing squares , malayalam fonts are just appearing as squares can you please help.

    regs
    Shine

  8. Hi,
    Has anyone tried to implement similar plugin that will work in visual mode?

    Sree,
    Google is using Transliteration for Blogger, Gmail and other services. And in their case they allow user to type in Indic in visual mode. Have you tried to investigate how they have done it? Is there anyway we can do something similar for wordpress, tinymce and others.

  9. Somehow, my comment above entitled “Writing Devanagari in WordPress | Improve My English” isn’t my comment, but a snippet of my post at my own website. I don’t know if the comment is still in moderation, but anyway I’ll try to repeat it from memory.

    I referenced my post at http://www.improvemyenglish.in because it lists everything I did to use this plugin and may help someone. Unfortunately, either because I am using a later Firefox (3.0.11) or a later WordPress (2.8), I can no longer see the drop-down list of languages. Just a squashed drop-down empty control. This does not change whether I tick the box or not.

    Luckily I can still type in Devanagari, but would have been stuck if it had been some other language. Does anyone have any tips?

  10. In addition to the post above, I should add that I tried the advice at WP-Jilebi and it made no difference, so my wp-config.php file now contains the following:

    define(‘DB_HOST’, ‘localhost’);
    /** Database Charset to use in creating database tables. */
    //define(‘DB_CHARSET’, ‘utf8’);
    define(‘DB_CHARSET’, ”);
    /** The Database Collate type. Don’t change this if in doubt. */
    define(‘DB_COLLATE’, ”);

  11. Hi i have include google transliteration in wordpress for hindi language.hindi language option come in post comment option but not in add page option .
    pls help me

  12. Guys,

    I am able to get around this issue, I commented out 2 lines of code in wp-config as below:

    /** Database Charset to use in creating database tables. */
    //define(‘DB_CHARSET’, ‘utf8’);

    /** The Database Collate type. Don’t change this if in doubt. */
    //define(‘DB_COLLATE’, ”);

    I am not sure if this is correct but now I am able to publish post in Tamil.

    @Sanjay M, how do we check if the database encoding is in unicode

    @Suppan, thank you for your suggestion.

  13. This is unlikely to be an issue of the plugin (it works perfectly on my site, for example). Try to ensure the encoding of your wordpress database – it has to be Unicode.

  14. Thats right. getting the same for me. I can type and see the tamil letters and words in HTML mode. Once published everything gets replaced with ????????????????

    Maybe the plugin stopped working for latest version of WordPress?

    Need to look for someother plug-in that works for the latest version of WordPress. Anyone have any idea what other plug-in works for the latest version of WordPress?

  15. Hi,

    Typing is all fine, but after publishing I just see the ??????? only. SOmthing seems to be wrong somewhere? Any thoughts on where I might be wrong.

    I have activated the plugin and I am composing in the HTML mode only.

    Thank you,
    Tamilula

  16. My wordpress doesnot display tamil or any other language?

    I can type in Tamil no issues.. Or any other language. But when I save it I only get ????????????? ????????

    All these question mark.

    Can You please help me? I am tired of searching….

    Thanks,
    Suppan

  17. This is not working with Firefox new Update, Chrome and IE! I’m getting the Dropdown box at the TinyMCE editor without any language!

    Can you check this please?

  18. Very useful! Since it works only in HTML input mode, could HTML mode be set as default when your plugin loads on a page?

    In wordpress 2.7, the plugin seems to work only for roles admin and editor. Not for author. I use firefox 3.0.1 on linux. Was testing your plugin on a local wordpress installation.

    It is useful if it works for author role as well. For an author, I find ‘Type in’ check box unchecked and language section list unpopulated. What should I check and correct?

    Thanks.

  19. pls help me whenever i use google transliteration and then copy paste the hindi text in ms word it shows something else.I have tried downloading hindi fonts but it doesnt work pls help.

  20. Hi,

    It is working well.. sorry for the previous comment. I missed it to use in HTML. I was trying in Visual mode.

    Great plug-in which I am looking for a long time.

    Thanks,

  21. உலகம்.net’ல் உங்களது பிளக்கினை அமைத்து பார்த்தேன். அது ‘visual’ எடிட்டரில் வேலை செய்ய வில்லை. ‘HTML’ எடிட்டரில் வேலை மட்டும் வேலை செய்கிறது. என்ன செய்யட்டும்?

  22. Hey Suhas,
    You just need to upload it to the plugins folder and activate. The language menu appears on the post/page editor.

    @Mayooresan – Yes, working on it, will have this done within a week.

  23. Very cool man! Something that I was looking for…. I read elsewhere that suggested that I type the indic language at a difference place and paste in wordpress. But, this is way better. I am yet to try out the plugin… Will try out and let you know what I find.

    Abhinav Kaiser

  24. hey,

    I will publish it on my blog too .. I was looking for something like this for a long time … uhmmm just need to test it once .. 😉

    will email u soon .. @ work now

    thanks a lot

Leave a Reply

Your email address will not be published.


*


eighteen − eleven =