安卓:在应用程序中限制语言 [英] Android : Restrict Language in an Application

查看:78
本文介绍了安卓:在应用程序中限制语言的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

是否有可能限制语言的Andr​​oid应用程序,即当用户改变语言,我只希望英语和法语语言需要得到effected.Problem是当用户选择了荷兰选项菜单名称在英语,但<强> MORE(如果有更多的选择,显示系统生成的菜单选项)是荷兰。我希望更多的是英文。
请帮助
结果NITZ

Is it possible to restrict the language in an android application, i.e When user change language i want only English and French languages needs to get effected.Problem is when user select the Dutch the Options Menu names are in in English but MORE(System generated menu option if there are more options to display) is in Dutch.I want More to be in English.
Please Help
NITZ

推荐答案

这在选项中显示的字多,当你preSS菜单键是一个系统生成的字符串,因此将匹配任何系统语言无论是你的应用程序支持什么。

The word "More" that shows up in the options when you press the menu key is a system generated string so it will match whatever the system language is regardless of what your app supports.

如果您想要的单词更多,法文或者英文显示出来,你就必须砍掉你有这样系统不显示它的菜单项的数量,然后手动添加一个更多 选项。你手动添加更多的选项不会自动显示的菜单选项的其余部分,所以你不得不将它们移动到自己的上下文菜单。

If you want the word "More" to show up in either French or English, you'll have to cut down the number of menu items you have so that the system doesn't show it, then manually add a "More" option. The more option you add manually won't automatically show the rest of the menu options so you'd have to move them to their own context menu.

这篇关于安卓:在应用程序中限制语言的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆