[英]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.