赞
踩
需求如题,改动内容不多,关键是找到需要改动的点,需要修改的文件在build目录,直接上patch:
- diff --git a/target/product/full_base.mk b/target/product/full_base.mk
- index ffd3cde11..8c24a7745 100644
- --- a/target/product/full_base.mk
- +++ b/target/product/full_base.mk
- @@ -47,8 +47,8 @@ PRODUCT_PROPERTY_OVERRIDES := \
- ro.config.ringtone=Ring_Synth_04.ogg \
- ro.config.notification_sound=pixiedust.ogg
-
- -# Put en_US first in the list, so make it default.
- -PRODUCT_LOCALES := en_US
- +# Put zh_CN first in the list, so make it default.
- +PRODUCT_LOCALES := zh_CN en_US
-
- # Get some sounds
- $(call inherit-product-if-exists, frameworks/base/data/sounds/AllAudio.mk)
- diff --git a/target/product/languages_default.mk b/target/product/languages_default.mk
- index a13a23c56..ee4f58f30 100644
- --- a/target/product/languages_default.mk
- +++ b/target/product/languages_default.mk
- @@ -17,6 +17,7 @@
- # This is a build configuration that just contains a list of languages, with
- # en_US set as the default language.
- PRODUCT_LOCALES := \
- + zh_CN \
- en_US \
- af_ZA \
- am_ET \
- @@ -99,7 +100,6 @@ PRODUCT_LOCALES := \
- ur_PK \
- uz_UZ \
- vi_VN \
- - zh_CN \
- zh_HK \
- zh_TW \
- zu_ZA \
不难看出,所谓的设置默认语言,只是把相应的语言配置到首位即可。
小需求,Mark。
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。