7

我收到此错误:

"preferences_default_reminder_labels" 没有翻译成 cs, de, es, fr, it, ja, ko, nl, pl, pt, pt-rBR, zh

问题:检查未翻译所有字符串的不完整翻译 ID:MissingTranslation

但我的应用程序只需要翻译成英文和俄文。如何调整 lint 以仅检查 en、ru 翻译?

4

2 回答 2

0

Check if you have set environmental variable ANDROID_LINT_COMPLETE_REGIONS.

From lint docs:

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.

What is environmental variable and how to use them you can find here.

于 2012-07-04T20:51:01.073 回答
0

如果您有其他语言res的空文件夹,请删除它们。values-XXru

于 2012-07-02T15:12:34.800 回答