简体   繁体   English

用英语以外的其他语言输入

[英]Input In Other Language Other than English

I am making a application in php, in which i want some other language as input. 我正在用php开发一个应用程序,我想在其中输入其他语言。

Mean if someone types "A"from US English Keyboard it should be "ए" in hindi. 意味着如果有人从美国英语键盘输入“ A”,则印地文应该为“ए”。

How can it be done? 如何做呢?

Dont want to use graphical keyboard. 不想使用图形键盘。

Wants to make something like http://hindi.changathi.com/ 想要制作类似http://hindi.changathi.com/的东西

I'm not sure what the logic is behind the calculator, and I'm not sure if you really want PHP, but it just substitutes a Hindi character for an English Latin character. 我不确定计算器背后的逻辑是什么,也不确定您是否真的想要PHP,但是它只是将印地语字符替换为英语拉丁字符。 So in either PHP or JavaScript just replace: 因此,在PHP或JavaScript中只需替换:

PHP PHP

$eng = array('A', 'B','C'); //etc...
$hin = array('अ','ब','क'); //etc...

$result = str_replace($eng, $hin, $mystring);

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 获取非英语的用户输入 - Get user input in other than English language 非英语语言的Javascript - Javascript in language other than english 在testdata.properties文件中显示除英语之外的其他语言 - Display other than English language in testdata.properties file 设置 reCAPTCHA 版本 2 设置英语以外的另一种语言 - Setting reCAPTCHA Version 2 set another language other than English myDate.toLocaleString() 没有正确格式化为英语以外的任何其他语言 - myDate.toLocaleString() not properly formatted for any other language than English 如果将“接受语言”设置为英语以外的其他语言,则Google Maps中的标记位置错误 - Wrong marker position in Google Maps if 'Accept-Language' is set to a language other than english React 中的其他语言数字转换为英语问题 - other language digit conversion to english issue in React 限制用户只能输入英文文本,react native 中没有其他语言 - Restrict user to enter English only text input, no other language in react native 禁止输入除英语以外的任何其他字母 - Block typing in any other alphabet than english 在 Node JS 中使用英语以外的语言时出现未转义的字符? - Unescaped Characters when using languages other than English in Node JS?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM