[英]Internationalisation keyboard support in phonegap html5 apps
I am preparing an app in sencha touch and phonegap. 我正在使用sencha touch和phonegap准备一个应用程序。 In my app , I am providing an option to the user to change language .By default , it is english.
在我的应用程序中,我向用户提供了一种更改语言的选项。默认情况下,它是英语。 Now When user changes to some other language , I change the text present, say like placeholder of input box by code.
现在,当用户更改为其他语言时,我更改了当前的文本,例如按代码输入框的占位符。
But is there anyway , I can change the layout of the keyboard which comes on the screen when user taps on any text box. 但是无论如何,我可以更改当用户点击任意文本框时屏幕上出现的键盘的布局。 ?
? There is no attribute present on the input tag which will tell the device to open the keyboard with the different language?
输入标签上没有属性,该属性会告诉设备使用其他语言打开键盘吗?
Short answer: you can't. 简短的答案:您不能。 The keyboard is itself an app and it's settings aren't reachable.
键盘本身是一个应用程序,无法访问其设置。 The question is: why?
问题是:为什么? you could launch a settings intent where you ask the user to change their keyboard layout if this is some sort of a language training app or whatever.
您可以启动设置意图,要求用户更改其键盘布局(如果这是某种语言培训应用程序)。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.