English to Hindi typing using google transliteration . here is the easy code for type in hindi using google transliteration. You can use google transliteration , for language conversion .
find the below code for English to Hindi.
English to Hindi typing using google transliteration
<html> <head> <meta http-equiv=”Content-Type” content=”text/html; charset=utf-8″/> <script type=”text/javascript” src=”https://www.google.com/jsapi”></script> <script type=”text/javascript”> // Load the Google Transliterate API 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 }; // Create an instance on TransliterationControl with the required // options. var control = new google.elements.transliteration.TransliterationControl(options); // Enable transliteration in the textbox with id // ‘transliterateTextarea’. control.makeTransliteratable([‘transliterateTextarea’]); control.makeTransliteratable([‘transliterateTextarea2’]); } google.setOnLoadCallback(onLoad); </script> </head> <body> Type in Hindi (Press Ctrl+g to toggle between English and Hindi)<br> <textarea id=”transliterateTextarea” style=”width:600px;height:200px”></textarea> <input type=”text” id=”transliterateTextarea2″ name=”sunil”> </body> </html>
Please see how to get current month’s first and last date using php ? . Also share your comments and suggests us for posts and other things.