Skip to content
Permalink
Browse files

Add pluralization rule for "stadia".

Refs #3830
  • Loading branch information...
ADmad committed Jun 29, 2014
1 parent a1ae31e commit 607200fa7b1df5b45caef958a4c59732f003abad
Showing with 11 additions and 1 deletion.
  1. +1 −0 lib/Cake/Test/Case/Utility/InflectorTest.php
  2. +10 −1 lib/Cake/Utility/Inflector.php
@@ -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(''), '');
}
@@ -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',

0 comments on commit 607200f

Please sign in to comment.
You can’t perform that action at this time.
You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session.