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. :)

貢獻者指南