pablisco
04/03/2019, 6:39 AMrook
04/03/2019, 3:08 PMQuantityString
by itself. Unless you want to arbitrarily differentiate between Some
and Many
. I’m assuming you have some threshold somewhere that decides whether to make a Some
or Many
.pablisco
04/03/2019, 4:49 PMQuantityString
for those cases…
From the documentation:
The selection of which string to use is made solely based on grammatical necessity. In English, a string for zero will be ignored even if the quantity is 0, because 0 isn’t grammatically different from 2, or any other number except 1 (“zero books”, “one book”, “two books”, and so on).https://developer.android.com/guide/topics/resources/string-resource.html#Plurals It may work for some, but not for all languages
None -> "Nothing yet."
Some(100) -> "Counted 100 times."
Many -> "Counted too many times."
galex
04/17/2019, 5:29 AM