Add pluralization rule for "stadia".

Refs #3830
This commit is contained in:
ADmad 2014-06-29 14:51:23 +05:30
parent a1ae31e554
commit 607200fa7b
2 changed files with 11 additions and 1 deletions

View file

@ -241,6 +241,7 @@ class InflectorTest extends CakeTestCase {
$this->assertEquals(Inflector::pluralize('curve'), 'curves');
$this->assertEquals(Inflector::pluralize('body_curve'), 'body_curves');
$this->assertEquals(Inflector::pluralize('metadata'), 'metadata');
$this->assertEquals(Inflector::pluralize('stadia'), 'stadia');
$this->assertEquals(Inflector::pluralize(''), '');
}

View file

@ -56,7 +56,16 @@ class Inflector {
'/$/' => 's',
),
'uninflected' => array(
'.*[nrlm]ese', '.*deer', '.*fish', '.*measles', '.*ois', '.*pox', '.*sheep', 'people', 'feedback'
'.*[nrlm]ese',
'.*deer',
'.*fish',
'.*measles',
'.*ois',
'.*pox',
'.*sheep',
'people',
'feedback',
'stadia'
),
'irregular' => array(
'atlas' => 'atlases',