首页
学习
活动
专区
工具
TVP
发布
社区首页 >问答首页 >避免Android Lint抱怨未翻译的字符串

避免Android Lint抱怨未翻译的字符串
EN

Stack Overflow用户
提问于 2012-09-26 04:44:18
回答 11查看 66.2K关注 0票数 126

是否可以指定value-*目录中的文件中的字符串故意不翻译成其他语言?我有一堆所有语言通用的字符串,不需要翻译,所以我在values目录中创建了一个unlocalized-strings.xml文件。运行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.

如何定义这个未本地化字符串的区域?

EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/12590739

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档