Fork me on GitHub

安卓编译 translate error Lint: How to ignore “<key> is not translated in <language>” errors?

Add following at the header of your strings.xml file

 

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

or:

In "Window" > "Preferences" > "Android" > "Lint Error Checking":
(For Mac, "Eclipse" > "Preferences" > "Android" > "Lint Error Checking")

Find the MissingTranslation line, and set it to Warning as seen below:

posted on 2015-10-30 11:34  pengyingh  阅读(236)  评论(0)    收藏  举报

导航