我正在使用以下代码翻译English
成German
<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+e',
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>
<span>English to German</span><br>
<form runat="server">
<div>
<asp:TextBox ID="transliterateTextarea" runat="server" TextMode="MultiLine" Rows="5"
Columns="50" />
</div>
</form>
</body>
</html>
为了English
它Hindi
的工作正常。English
但它对to不起作用。非常感谢German
我想将文本转换English
为帮助。German
提前致谢