Language Plural Rules
http://unicode.org/repos/cldr-tmp/trunk/diff/supplemental/language_plural_rules.html
Language Name | Code | Category | Examples | Rules |
---|---|---|---|---|
English | en | one | 1 | one → n is 1; other → everything else |
other | 0, 2-999; 1.2, 2.07... |
Language Name | Code | Category | Examples | Rules |
---|---|---|---|---|
Korean | ko | other | 0-999; 1.2... | other → everyth |
안드로이드 plurals 설정할때 참고용
영어표시할때 zero는 안됨.
if (commentsCount == 0)
str = res.getString(R.string.number_of_comments_zero);
else
str = res.getQuantityString(R.plurals.number_of_comments, commentsCount, commentsCount);
이런식으로 count 확인해서 따로 해야함.
한글은 other만 지원함.