// Load the Google Transliterate API google.load("elements", "1", { packages: "transliteration" });
function onLoad() { var options = { sourceLanguage: 'en', // or google.elements.transliteration.LanguageCode.ENGLISH, destinationLanguage: ['ta'], // or [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 textfields with the given ids. var ids = [ "transl1", "transl2" ]; control.makeTransliteratable(ids);
// Show the transliteration control which can be used to toggle between // English and Hindi. control.showControl('translControl'); } google.setOnLoadCallback(onLoad);
1 ping
ஆர்.எஸ்.எஸ், பாபர் மசூதி, காந்தி கொலை மறுபுறம் « சகோதரன்
December 15, 2009 at 5:11 pm (UTC 5.5) Link to this comment
[…] பற்றி எழுத்தாளர் ஜெயமோகன் அவர்கள் தன் வலைதளத்தில் […]