- 名词单复数避免写两种文案,需要按照安卓标准采用plural方式。
例子:
<plurals name="numberOfNotifications">
<item quantity="one">%d Notification</item>
<item quantity="few">%d Notifications</item>
<item quantity="other">%d Notifications</item>
</plurals>
相关介绍:
https://developer.android.com/guide/topics/resources/string-resource.html
https://en.wikipedia.org/wiki/Plural
- 录入英文文案避免使用中文标点符号。
举例:
正确:Hello World, I am a geek!
错误:Hello World,I am a geek!
- 任何英文标点符号后面如果还有新的内容,需要在标点符号后面添加一个空格。
举例:
正确:Hello World, I am a geek!
错误:Hello World,I am a geek!
- 如果某句文案只需要中文或者英文,或者是临时测试文案,需要标记成translatable false的方式,正式需要多语言的时候再把translatable false 标记去除
举例:
<string name="settings_language_en" translatable="false">English</string>
- 若非必要,尽量避免使用 & 以及 We'll 这种缩写模式,采用全写模式可以减少转义符的使用,避免未使用转义符造成的打包失败
- 折行避免用/n方式,英文和其它语言长度有别,对于其它语言处理起来很麻烦,所以请尽量采用自然整词折行
文章评论
I dump old stuff in the truck all the time. Better than dumping it down a storm drain or something. I’ve even put stuff in there that has the 2cycle oil mixed in. It gets diluted. My truck has 170,000 miles and still go#3&gi82n0;.knock on wood.“And is it really OK to put the old gas in the car???? That seems weird to me. The cars are a 10+year old Civic and a 9-year-old Corolla.”