android/sunflower

Merge prefix/suffix strings into single strings.

开放

#351 创建于 2019年2月28日

 (0 条评论) (1 个反应) (0 位负责人)Kotlin (4,772 个派生)batch import
cleanuphelp wanted

仓库指标

星标
 (17,785 个星标)
PR 合并指标
 (30 天内没有已合并 PR)

描述

Using guidance from Styling internationalized text in Android, it would be better to combine strings such as "watering_next_prefix" and "watering_next_suffix" to a single "watering_next" plural string.

For example:

<plurals name="watering_needs_prefix">
    <item quantity="one"><b>Watering needs:</b> <i>every day</i></item>
    <item quantity="other"><b>Watering needs:</b> <i>every %d days</i></item>
</plurals>

It would certainly also be fine to use the guidance under "Complex text styling with Annotation", but that's more of a stretch goal. :)

贡献者指南