i18n国际化语言问题 编译报错config_labels"is not translated in "zh_CN(Chinese:China)",..."

1、 首先确保默认values下strings要有所有的命名常量。

2、确保在其他方面没有引用依赖国际化语言(整合在一起只引用一次)。

3、在所有的string和array文件的字符资源下根目录添加这么两个属性即可:

 <resources
  xmlns:tools="http://schemas.android.com/tools"
  tools:ignore="MissingTranslation" >
</resources>  
如图:

猜你喜欢

转载自blog.csdn.net/hbw020/article/details/51781242