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

后端 未结 13 1980
长情又很酷
长情又很酷 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:09

    If you want to turn off the warnings about the specific strings, you can use the following:

    strings.xml

    
        
    
        
        ignore my translation
        ...
    
    
    

    If you want to warn on specific strings instead of an error, you will need to build a custom Lint rule to adjust the severity status for a specific thing.

    http://tools.android.com/tips/lint-custom-rules

提交回复
热议问题