2012-06-29 3 views
7

에 번역을 확인 :강제 보풀이 나는이 오류 얻을 정확한 언어

"preferences_default_reminder_labels" is not translated in cs, de, es, fr, it, ja, ko, nl, pl, pt, pt-rBR, zh

Issue: Checks for incomplete translations where not all strings are translated Id: MissingTranslation

를하지만 내 응용 프로그램은 영어와 러시아어 만에 번역 할 필요가있다. en, ru 번역 만 확인하려면 어떻게해야합니까?

+0

[누락 된 번역을 확인하기위한 Android Lint 제한 언어]의 가능한 복제본 (http://stackoverflow.com/questions/14232728/android-lint-limit-languages-to-check-for-missing-translations) – blahdiblah

답변

0

res에 빈 폴더가있는 경우 , 다른 언어는 ru 인 경우 삭제하십시오.

+1

I "values"와 "values-ru"만 다른 폴더가 없습니다. – karabara

0

환경 변수가 ANDROID_LINT_COMPLETE_REGIONS으로 설정되어 있는지 확인하십시오. lint docs에서

:

환경 변수와 사용 방법이 here을 찾을 수는 무엇

MissingTranslation


Summary: Checks for incomplete translations where not all strings are translated

Priority: 8/10
Severity: Fatal
Category: Correctness:Messages

If an application has more than one locale, then all the strings declared in one language should also be translated in all other languages.

By default this detector allows regions of a language to just provide a subset of the strings and fall back to the standard language strings. You can require all regions to provide a full translation by setting the environment variable ANDROID_LINT_COMPLETE_REGIONS.

.

+1

ANDROID_LINT_COMPLETE_REGIONS은 MissingTranslation에 영향을 미치지 않는 것 같습니다. 그건 그렇고 도움이 안된다 – karabara

+0

그럼'$ lint --disable MissingTranslation/folder/with/project' 명령 줄에서 호출하십시오. Eclipse에서 프로젝트 속성을 열고 Android Lint 환경 설정을 선택하고 MissingTranslation (목록 ​​중간에 있음)을 찾아 Severity -> Ignore를 선택하십시오. – vasart

+4

MissingTranslation을 비활성화하고 싶지 않습니다. ru가 아닌 다른 언어에 대해서만 사용을 취소 하시겠습니까? – karabara

관련 문제