Click here to Skip to main content
15,909,591 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
hi sir

in asp.net page i having 2 text boxes ,when i enter some text in English and press space means ,the entered English text is converted into Hindi and copied in to another text box

please any one help
Posted
Updated 23-Dec-13 4:21am
v2
Comments
Er. Tushar Srivastava 23-Dec-13 5:48am    
Do you want to translate or just want to change the script from Roman to Devnaagari?
What have you tried and where is the problem?

You can do this by using following link.
https://developers.google.com/translate/?csw=1
 
Share this answer
 
v2
I have Used this.
<script type="text/javascript">
/*
* How to setup a textarea that allows Transliteration from English to Hindi.
*/

google.load("elements", "1", { packages: "transliteration" });

function OnLoad() {
var content = document.getElementById('content');

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']);
control.makeTransliteratable(['transliterateTextarea1']);

}

google.setOnLoadCallback(OnLoad);
</script>
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900