android/sunflower

Merge prefix/suffix strings into single strings.

オープン

#351 opened on 2019/02/28

 (0 件のコメント) (1 件のリアクション) (0 人の担当者)Kotlin (4,772 件のフォーク)batch import
cleanuphelp wanted

Repository metrics

Stars
 (17,785 個のスター)
PR merge metrics
 (30d に merged 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. :)

コントリビューターガイド