問題描述
我無法編譯/調試我們的 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>"未翻譯成<語言>"錯誤?的文章就介紹到這了,希望我們推薦的答案對大家有所幫助,也希望大家多多支持html5模板網!