本文介绍了Lint:如何忽略“< key>未翻译为< language>“错误?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述



我的IDE的验证工具创建错误说:

使用Ant编译/安装/运行正常,但我想使用我的IDE可以轻松调试。



有没有办法关闭这个特定的检查,还是理想地做出警告而不是错误?



我明白,在发布之前,我们真的需要获取本地化文件,但暂时不是优先级,因为屏幕本身被非常频繁地修改。

解决方案

Android Studio:




  • 文件>设置并在搜索框中输入MissingTranslation



Eclipse: p>


  • Windows / Linux:在Window>首选项>Android>Lint Error Checking

  • Mac:Eclipse>首选项>Android>Lint错误检查



查找 MissingTranslation 行,并将其设置为警告,如下所示:




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:

Compiling/installing/running with Ant works fine, but I would like to use my IDE to ease debugging.

Is there a way to turn off this particular check, or ideally make it a warning rather than an error?

I understand that before release we will really need to get localisation files right, but for the time being it is not a priority as the screens themselves are being modified very frequently.

解决方案

Android Studio:

  • "File" > "Settings" and type "MissingTranslation" into the search box

Eclipse:

  • Windows/Linux: In "Window" > "Preferences" > "Android" > "Lint Error Checking"
  • Mac: "Eclipse" > "Preferences" > "Android" > "Lint Error Checking"

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

这篇关于Lint:如何忽略“< key>未翻译为< language>“错误?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

07-23 01:52