コード例 #1
0
ファイル: Section.php プロジェクト: ppiedaderawnet/concrete5
 /**
  * Returns the plural cases for the language; array keys are the case name, array values are some examples for that case.
  *
  * @return array
  *
  * @example For Japanese: returns
  *     'other' => '0~15, 100, 1000, 10000, 100000, 1000000, …'
  * @example For English: returns
  *     'one' => '1',
  *     'other' => '0, 2~16, 100, 1000, 10000, 100000, 1000000, …'
  * @example For French: returns
  *     'one' => '0, 1',
  *     'other' => '2~17, 100, 1000, 10000, 100000, 1000000, …'
  * @example For Russian returns
  *     'one' => '1, 21, 31, 41, 51, 61, 71, 81, 101, 1001, …',
  *     'few' => '2~4, 22~24, 32~34, 42~44, 52~54, 62, 102, 1002, …',
  *     'other' => '0, 5~19, 100, 1000, 10000, 100000, 1000000, …',
  */
 public function getPluralsCases()
 {
     return (array) $this->locale->getPluralCases();
 }