Quantity “two” not working in Android Strings-Resources Plural

前端 未结 3 985
醉梦人生
醉梦人生 2021-02-14 03:45

Android allows translators to define Plurals. The following example works for me with locale \'en\':


    

        
3条回答
  •  没有蜡笔的小新
    2021-02-14 04:41

    That's an old bug. There are just a few missing if-clauses in the relevant code section of the PluralRules class.

    As the answer in your linked question stated, you are better off by using MessageFormat or something else. The bug has been reported in may 2010, I wouldn't expect that beeing fixed in the near future (and you still have a faulty version on old version devices in this case).

    Completely false, see the comments.

提交回复
热议问题