Android Studio提示缺少翻译语言
2016-09-23 13:07
363 查看
Explanation for issues of type "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.
If the string should not be translated, you can add the attribute
translatable="false" on the <string> element, or you can define all your
non-translatable strings in a resource file called donottranslate.xml. Or,
you can ignore the issue with a tools:ignore="MissingTranslation"
attribute.
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.
You can tell lint (and other tools) which language is the default language
in your res/values/ folder by specifying tools:locale="languageCode" for
the root <resources> element in your resource file. (The tools prefix
refers to the namespace declaration http://schemas.android.com/tools.)
在默认的strings.xml的开始设置
If an application has more than one locale, then all the strings declared
in one language should also be translated in all other languages.
If the string should not be translated, you can add the attribute
translatable="false" on the <string> element, or you can define all your
non-translatable strings in a resource file called donottranslate.xml. Or,
you can ignore the issue with a tools:ignore="MissingTranslation"
attribute.
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.
You can tell lint (and other tools) which language is the default language
in your res/values/ folder by specifying tools:locale="languageCode" for
the root <resources> element in your resource file. (The tools prefix
refers to the namespace declaration http://schemas.android.com/tools.)
在默认的strings.xml的开始设置
<resources xmlns:tools="http://schemas.android.com/tools" xmlns:xliff="urn:oasis:names:tc:xliff:document:1.2" tools:ignore="MissingTranslation">
相关文章推荐
- 〖Android〗Android App项目资源字符串检查(检查是否缺少对应的翻译,导致系统切换语言后崩溃)
- Android Studio 提示与技巧(官方文档翻译)
- c 语言错误提示翻译
- android studio 提示翻译
- (翻译)第二十四回 JavaFX2.0 提示条ToolTip
- 秋色园QBlog技术原理解析:页面内容填充及多语言翻译流程演示示例(十)
- android studio ,gradle 导入项目 常见错误 错误提示:Error:(2, 0) Plugin with id ‘com.github.dcendents.Android-mave
- 在使用python语言的open函数时,提示错误OSError: [Errno 22] Invalid argument: ‘文件路径’
- 重磅!Android Studio 3.0 正式发布,支持 Kotlin 语言
- 把c语言中的声明用程序翻译成通俗的语言
- centos6.6安装yaws提示缺少pam_appl.h文件
- android studio 首字母提示 设置 大小写敏感
- Jenkins構建java項目提示缺少com.sun.image.codec.jpeg包
- 每次打开word,Office 2007就提示“您正试图运行的函数包含有宏或需要宏语言支持的内容”,请问怎么关闭?
- PHP PSR-0 语言规范翻译
- Android Studio 使用了xmlns:app 代码不提示问题
- 常见问题二:多语言总是获取不到翻译的值
- django 1.8 官方文档翻译:4-2-1 Django模版语言
- IE6/IE7中JavaScript json提示缺少标识符、字符串或数字问题处理
- Android Studio 缺少Android支持