Android Lint does not show translation. No errors.

I am using Android SDK 16.1 with Eclipse on Windows.

I set ANDROID_LINT_COMPLETE_REGIONS as a Windows environment variable in the documentation

I rebooted my computer.

I checked System.getenv ("ANDROID_LINT_COMPLETE_REGIONS") uses Windows system variables.

I have confirmed that translation errors are included.

However, what I want / expect error is not. I have an English string in "/res/values/strings.xml" that is not in "/res/values-xx/strings.xml". I expect lint to be an error because I set ANDROID_LINT_COMPLETE_REGIONS. Looking at the source in the SDK, it looks like it should work.

Anyone have anything else I should try?

Update: I tried this on a Mac, and while I was saving ANDROID_LINT_COMPLETE_REGIONS = "1", I can not get the error message in Eclipse.

+4
source share
2 answers

Regardless of this issue, updating to Android SDK 17 fixes this issue for me. Now Lint can detect when I did not translate the line.

+1
source

I set it as a user variable (Windows XP), confirmed that it appears on the command line with the set command, and it seems to work in eclipse after restarting.

0
source

Source: https://habr.com/ru/post/1387300/


All Articles