All supported languages can be found and verified under <AndroidSourceRoot>/framework/base/core/res/res, for example:
values-ar, values-ar-rEG, values-ar-rIL...., ar, ar-rEG, ar-rIL is the location code.
create your own language setting's mk file or modify one example mk file under <AndroidSourceRoot>/build/target/products, for example:
languages_full.mk
config product mk file to use the language setting mk file, for example
PRODUCT_LOCALES += en_US
$(call inherit-product, build/target/product/languages_mysetting.mk)
本文介绍了如何在Android项目中配置并支持多种语言。通过编辑特定的资源文件和配置mk文件,开发者可以轻松地为应用程序添加多语言支持。文章详细解释了资源文件的位置及mk文件的创建方法。

被折叠的 条评论
为什么被折叠?



