android/sunflower

Merge prefix/suffix strings into single strings.

Offen

#351 geöffnet am 28.02.2019

 (0 Kommentare) (1 Reaktion) (0 zugewiesene Personen)Kotlin (4.772 Forks)batch import
cleanuphelp wanted

Repository-Metriken

Stars
 (17.785 Sterne)
PR-Merge-Metriken
 (Keine gemergten PRs in 30 T)

Beschreibung

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

Contributor Guide