MessageSelector
class MessageSelector
Constants
| private NUMERIC |
|
| private CONDITION |
|
| private CONDITION_PATTERN |
|
Methods
string
choose(string $line, float|int $number, string $locale)
Select a proper translation string based on the given number.
int
getPluralIndex(string $locale, float|int $number)
Get the index to use for pluralization.
Details
at line 22
string
choose(string $line, float|int $number, string $locale)
Select a proper translation string based on the given number.
at line 104
int
getPluralIndex(string $locale, float|int $number)
Get the index to use for pluralization.
The plural rules are derived from code of the Zend Framework (2010-09-25), which is subject to the new BSD license (https://framework.zend.com/license) Copyright (c) 2005-2010 - Zend Technologies USA Inc. (http://www.zend.com)