Lint: How to ignore “ is not translated in ” errors?

后端 未结 13 1822
长情又很酷
长情又很酷 2020-11-27 10:46

I can\'t compile/debug our Android app, because the localization files are not perfect yet.

My IDE\'s validation tool Lint create errors saying:

相关标签:
13条回答
  • 2020-11-27 11:25

    This will cause Lint to ignore the missing translation error for ALL strings in the file, yet other string resource files can be verified if needed.

    <?xml version="1.0" encoding="utf-8"?>
    <resources xmlns:tools="http://schemas.android.com/tools" 
        tools:ignore="MissingTranslation">
    
    0 讨论(0)
提交回复
热议问题