Missing quantity translation
Missing quantity translation
Different languages have different rules for grammatical agreement with quantity. In English, for example, the quantity 1 is a special case. We write "1 book", but for any other quantity we'd write "n books". This distinction between singular and plural is very common, but other languages make finer distinctions.
This lint check looks at each translation of a <plural>
and makes sure that all the quantity strings considered by the given language are provided by this translation.
For example, an English translation must provide a string for quantity="one"
. Similarly, a Czech translation must provide a string for quantity="few"
.
Issue id: MissingQuantity
https://developer.android.com/guide/topics/resources/string-resource.html#Plurals
Inspection Details | |
---|---|
Available in: | IntelliJ IDEA 2023.3, Qodana for Android 2023.3, Qodana for JVM 2023.3 |
Plugin: | Android, 2022.3.1 Beta 2 |