微波EDA网,见证研发工程师的成长!
首页 > 研发问答 > 手机设计讨论 > MTK手机平台交流 > KK版本语言列表Accented English问题

KK版本语言列表Accented English问题

时间:10-02 整理:3721RD 点击:
[DESCRIPTION]
android4.4--[Developer] Accented English
[SOLUTION]
KK:
[Developer] Accented English是一种虚拟mapping出来的语言,source code的resource中并没有实际的values-zz-rZZ 的resource与之对应。
切换到该语言也是仅仅Setting UI的字串发生变化.这是为开发者模式设计的,对于使用者没有多大作用。
添加这个语言项具体为如下红色部分:
LocalePicker.java(php?mod=tag&id=6090" target="_blank" class="relatedlink">Frameworks\base\core\java\com\android\internal\app)
public static ArrayAdapter<LocaleInfo> constructAdapter(Context context,
final int LayoutId, final int fieldId, final boolean isInDeveloperMode) {
final Resources resources = context.getResources();
ArrayList<String> localeList = new ArrayList<String>(Arrays.asList(
Resources.getSystem().getAssets().getLocales()));
if (isInDeveloperMode) {
if (!localeList.contains("zz_ZZ")) {
localeList.add("zz_ZZ");
}
/** - TODO: Enable when zz_ZY Pseudolocale is complete
* if (!localeList.contains("zz_ZY")) {
* localeList.add("zz_ZY");
*}
*/
}
……
如果要去掉该项,可以把红色部分注释掉。
L:
L上与KK不同,L上是判断如不在开发者模式就将"ar_XB"和"ar_XA"拿掉(如果有的话),没有使用"zz_ZZ".

Copyright © 2017-2020 微波EDA网 版权所有

网站地图

Top