示例#1
0
 /**
  * Returns the rule to determine which plural we should use (in gettext notation).
  *
  * @return string
  *
  * @example For Japanese: returns '0'
  * @example For English: returns 'n != 1'
  * @example For French: returns 'n > 1'
  * @example For Russian returns '(n % 10 == 1 && n % 100 != 11) ? 0 : ((n % 10 >= 2 && n % 10 <= 4 && (n % 100 < 12 || n % 100 > 14)) ? 1 : 2)'
  */
 public function getPluralsRule()
 {
     return (string) $this->locale->getPluralRule();
 }