mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2024-11-15 03:18:26 +00:00
Correct inflection of virus.
Instead of viri, it should be viruses. Refs #7466
This commit is contained in:
parent
5a8a7800ae
commit
13f147940f
2 changed files with 3 additions and 3 deletions
|
@ -128,7 +128,7 @@ class InflectorTest extends CakeTestCase {
|
|||
$this->assertEquals(Inflector::singularize('stimuli'), 'stimulus');
|
||||
$this->assertEquals(Inflector::singularize('syllabi'), 'syllabus');
|
||||
$this->assertEquals(Inflector::singularize('termini'), 'terminus');
|
||||
$this->assertEquals(Inflector::singularize('viri'), 'virus');
|
||||
$this->assertEquals(Inflector::singularize('viruses'), 'virus');
|
||||
$this->assertEquals(Inflector::singularize('people'), 'person');
|
||||
$this->assertEquals(Inflector::singularize('gloves'), 'glove');
|
||||
$this->assertEquals(Inflector::singularize('doves'), 'dove');
|
||||
|
@ -246,7 +246,7 @@ class InflectorTest extends CakeTestCase {
|
|||
$this->assertEquals(Inflector::pluralize('stimulus'), 'stimuli');
|
||||
$this->assertEquals(Inflector::pluralize('syllabus'), 'syllabi');
|
||||
$this->assertEquals(Inflector::pluralize('terminus'), 'termini');
|
||||
$this->assertEquals(Inflector::pluralize('virus'), 'viri');
|
||||
$this->assertEquals(Inflector::pluralize('virus'), 'viruses');
|
||||
$this->assertEquals(Inflector::pluralize('person'), 'people');
|
||||
$this->assertEquals(Inflector::pluralize('people'), 'people');
|
||||
$this->assertEquals(Inflector::pluralize('glove'), 'gloves');
|
||||
|
|
|
@ -47,7 +47,7 @@ class Inflector {
|
|||
'/(?<!u)(m)an$/i' => '\1en',
|
||||
'/(c)hild$/i' => '\1hildren',
|
||||
'/(buffal|tomat)o$/i' => '\1\2oes',
|
||||
'/(alumn|bacill|cact|foc|fung|nucle|radi|stimul|syllab|termin|vir)us$/i' => '\1i',
|
||||
'/(alumn|bacill|cact|foc|fung|nucle|radi|stimul|syllab|termin)us$/i' => '\1i',
|
||||
'/us$/i' => 'uses',
|
||||
'/(alias)$/i' => '\1es',
|
||||
'/(ax|cris|test)is$/i' => '\1es',
|
||||
|
|
Loading…
Reference in a new issue