Lint: How to ignore quot;lt;keygt; is not translated in lt;languagegt;quot; errors?(Lint:如何忽略“lt;keygt;未翻译成lt;语言gt;错误?)
问题描述
我无法编译/调试我们的 Android 应用,因为本地化文件还不完善.
I can't compile/debug our Android app, because the localization files are not perfect yet.
我的 IDE 的验证工具 Lint 会产生如下错误:
My IDE's validation tool Lint create errors saying:
newCardsOrderVals 未在 ar、bg、ca、cs 中翻译
newCardsOrderVals is not translated in ar, bg, ca, cs
使用 Ant 编译/安装/运行可以正常工作,但我想使用我的 IDE 来简化调试.
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:
Android Studio:
- 文件">设置"并在搜索框中输入MissingTranslation"
日食:
- Windows/Linux:在窗口">首选项">Android">Lint 错误检查"中
- Mac:Eclipse">首选项">Android">Lint 错误检查"
找到 MissingTranslation 行,并将其设置为 Warning,如下所示:
Find the MissingTranslation line, and set it to Warning as seen below:
这篇关于Lint:如何忽略“<key>"未翻译成<语言>"错误?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持编程学习网!
本文标题为:Lint:如何忽略“<key>"未翻译成&
基础教程推荐
- Spring AOP错误无法懒惰地为此建议构建thisJoinPoin 2022-09-13
- Struts2 URL 无法访问 2022-01-01
- 存储 20 位数字的数据类型 2022-01-01
- 如何对 Java Hashmap 中的值求和 2022-01-01
- RabbitMQ:消息保持“未确认"; 2022-01-01
- REST Web 服务返回 415 - 不支持的媒体类型 2022-01-01
- 无法复制:“比较方法违反了它的一般约定!" 2022-01-01
- 问题http://apache.org/xml/features/xinclude测试日志4j 2 2022-01-01
- 使用堆栈算法进行括号/括号匹配 2022-01-01
- 修改 void 函数的输入参数,然后读取 2022-01-01
