Search code examples
eclipseandroid-studiolocalizationandroid-resourcesandroid-lint

Lint: How to ignore "<key> is not translated in <language>" errors?


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:

newCardsOrderVals is not translated in ar, bg, ca, cs

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.


Solution

  • 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:

    Missing translations, is not translated in