当前位置:   article > 正文

Android11 修改默认系统语言为中文_redroid 默认汉化

redroid 默认汉化

需求如题,改动内容不多,关键是找到需要改动的点,需要修改的文件在build目录,直接上patch:

  1. diff --git a/target/product/full_base.mk b/target/product/full_base.mk
  2. index ffd3cde11..8c24a7745 100644
  3. --- a/target/product/full_base.mk
  4. +++ b/target/product/full_base.mk
  5. @@ -47,8 +47,8 @@ PRODUCT_PROPERTY_OVERRIDES := \
  6. ro.config.ringtone=Ring_Synth_04.ogg \
  7. ro.config.notification_sound=pixiedust.ogg
  8. -# Put en_US first in the list, so make it default.
  9. -PRODUCT_LOCALES := en_US
  10. +# Put zh_CN first in the list, so make it default.
  11. +PRODUCT_LOCALES := zh_CN en_US
  12. # Get some sounds
  13. $(call inherit-product-if-exists, frameworks/base/data/sounds/AllAudio.mk)
  14. diff --git a/target/product/languages_default.mk b/target/product/languages_default.mk
  15. index a13a23c56..ee4f58f30 100644
  16. --- a/target/product/languages_default.mk
  17. +++ b/target/product/languages_default.mk
  18. @@ -17,6 +17,7 @@
  19. # This is a build configuration that just contains a list of languages, with
  20. # en_US set as the default language.
  21. PRODUCT_LOCALES := \
  22. + zh_CN \
  23. en_US \
  24. af_ZA \
  25. am_ET \
  26. @@ -99,7 +100,6 @@ PRODUCT_LOCALES := \
  27. ur_PK \
  28. uz_UZ \
  29. vi_VN \
  30. - zh_CN \
  31. zh_HK \
  32. zh_TW \
  33. zu_ZA \

不难看出,所谓的设置默认语言,只是把相应的语言配置到首位即可。

小需求,Mark。

声明:本文内容由网友自发贡献,不代表【wpsshop博客】立场,版权归原作者所有,本站不承担相应法律责任。如您发现有侵权的内容,请联系我们。转载请注明出处:https://www.wpsshop.cn/w/笔触狂放9/article/detail/255681
推荐阅读
  

闽ICP备14008679号