本文介绍了英语到印地语的Converson的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
亲爱的所有人,
我想开发一个网络应用程序,我必须用英语和印地语来存储
i我正在使用google api
Dear All,
I want to develop a web application in which i have to store valued in English and Hindi
i am using google api
<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']);
}
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>
<textarea id="transliterateTextareaHindi" style="width:600px;height:200px"></textarea>
</body>
</html>
--->i want the text of transliterateTextarea should remain same as i type
--->the text of transliterateTextareaHindi Should Converted into hindi
推荐答案
这篇关于英语到印地语的Converson的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!