是否可以指定value-*
目录内文件中的字符串故意不翻译成其他语言?我有一堆所有语言都通用的字符串,不需要翻译,所以我unlocalized-strings.xml
在目录中创建了一个文件values
。运行 Android Lint 来检查它一直说缺少一些翻译的问题。我不想要要对整个项目禁用此检查,我只想在某些 XML 文件中禁用它。这可能吗?
"title_widget_updater_service" is not translated in de, en, en-rUS, it
Issue: Checks for incomplete translations where not all strings are translated
Id: MissingTranslation
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.
如何定义这个未本地化的字符串区域?