在文本框中输入乌尔都语
我想构建一个应用程序,其中文本框可以采用乌尔都语。我尝试更改字体并将其设置为阿拉伯语,但是当我运行它并输入一些内容时,它会输入英语。
我不希望用户在使用我的应用程序时更改区域设置。 我在许多乌尔都语应用程序中看到过这一点,当我们安装时,我们只需运行它们而不更改任何设置。
请指教如何做?
谢谢 富尔坎
I want to build an application, in which text boxes can take urdu language. I tried changing the font and put it to Arabic but when I ran it and typed something, it types in English.
I do not want user to change regional setting when my application is used.
I have seen this in many urdu applications, when we install, we simply run them without changing any settings.
Please advise how to do it?
Thanks
Furqan
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
首先Furqan你必须指定你的开发语言,是java还是C#还是..
我能想到的是,您可以创建一个具有英语到乌尔都语字符映射的静态类,每当用户键入字符时,您都可以在“字符类型事件处理程序”中处理它,并用适当的映射替换该字符,例如“P” ”与“پ”..
我希望它能给你一个开始......
First of all Furqan you must have specified your development language ,is it java or C# or ..
Well what I can think of is that you can make a static Class which has English to Urdu character mappings and whenever a user types a character you handle it in the "Character Typed Event Handler" and replace the character with proper Mapping For Example "P" with "پ"..
I hope it gives you a start...