Skip to content

Commit

Permalink
Add pluralization rule for "stadia".
Browse files Browse the repository at this point in the history
Refs #3830
  • Loading branch information
ADmad committed Jun 29, 2014
1 parent a1ae31e commit 607200f
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 1 deletion.
1 change: 1 addition & 0 deletions lib/Cake/Test/Case/Utility/InflectorTest.php
Expand Up @@ -241,6 +241,7 @@ public function testInflectingPlurals() {
$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(''), '');
}

Expand Down
11 changes: 10 additions & 1 deletion lib/Cake/Utility/Inflector.php
Expand Up @@ -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',
Expand Down

0 comments on commit 607200f

Please sign in to comment.