I'm encountering problems when using quantity string (plurals) in Android XML to get the appropriate pluralization if I need to default from an unsupported language.
Android plurals support creating multiple strings that are used as appropriate for the number quantity provided, so I have this in my strings.xml:
<plurals name ="hours">
<item quantity="one">1 hour ago</item>
<item quantity="other">%d hours ago</item>
</plurals>
and this in my code:
getQuantityString(R.plurals.hours, time, time);
This works fine if my device is set to English, but if I set my device to, say, Japanese, a language I don't yet support, it only uses the "other" quantity string and can produce the output
1 hours ago
Is there any way to have plurals give grammatical output while defaulting from an unsupported language?