Language Plural Rules





http://unicode.org/repos/cldr-tmp/trunk/diff/supplemental/language_plural_rules.html


Language NameCodeCategoryExamplesRules
Englishenone1one → n is 1;
other → everything else
other0, 2-999;
1.2, 2.07...



Language NameCodeCategoryExamplesRules
Koreankoother0-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만 지원함.

Posted by [czar]
,