问题描述
什么的翻译
属性,如翻译=FALSE
,是什么意思?
What does the translatable
attribute, like translatable="false"
, mean?
推荐答案
该属性指出,此属性将是所有区域设置相同。为什么是它有用吗?
This attribute points out that this attribute will be the same for all locales. Why is it useful?
- 本地化文件是人类和节省时间,更具有可读性。
- 它告诉皮棉工具,一切都很好,而且Android不需要寻找此资源的翻译。
完整的解释:
http://tools.android.com/recent/non-translatablestrings
所以,一般情况下,这意味着如果不把这个属性,你应该始终本地化此资源,否则,告诉人们和编译器,这是通过指定该属性的所有语言环境独特。
So, generally, this means if don't put this attribute, you should always localize this resource, otherwise tell people and compiler that this is unique for all locales by specifying this attribute.
P.S。相信我,当你的项目变大这是非常大的它是非常有帮助的。例如,我目前正在键盘上的项目,这样可以节省大量的时间。
P.S. Trust me, when your project grows large it's extremely big it is very helpful. For example, I'm currently working on keyboard project and it saves lots of time.
这篇关于什么是Android中使用的字符串翻译的目的是什么?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!