将文本框文本转换为印地语 [英] Convert text Box text Into Hindi

查看:105
本文介绍了将文本框文本转换为印地语的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

嗨先生



在asp.net页面我有2个文本框,当我输入一些英文文本并按空格表示时,输入的英文文本被转换进入印地语并复制到另一个文本框



请任何一个帮助

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

推荐答案

你可以这样做使用以下链接。

https://developers.google.com/translate/?csw = 1
You can do this by using following link.
https://developers.google.com/translate/?csw=1


我用过这个。

< script type =text / javascript>

/ *

*如何设置一个允许音译从英语到印地语的textarea。

* /



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



函数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>
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>


这篇关于将文本框文本转换为印地语的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆