鉴于复数规则的不寻常性质,我们如何在 ICU MessageFormat 中表示俄语?
MessageFormat 支持复数形式{arg, plural, =1 {one} other {other}}
和更复杂的形式{arg, plural, =0 {none} =1 {one} =2 {few} other {several}}
。
但是,有时不经过一些计算,无法直接由数字确定要使用的文本;我们该怎么做?俄语有三个基于数字中最后一位数字的复数规则,但 11-14 除外。
我查看的信息:
俄语多元化
http://www.russianlessons.net/lessons/lesson11_main.php
消息格式规则
http://userguide.icu-project.org/formatparse/messages
各种语言的复数规则数
https://developer.mozilla.org/en-US/docs/Mozilla/Localization/Localization_and_Plurals