bug #18824 Added people - person singularization (Keeo)

This PR was merged into the 3.2-dev branch.

Discussion
----------

Added people - person singularization

| Q             | A
| ------------- | ---
| Branch?       | 3.0, this 'bug' is present even in older versions
| Bug fix?      | yes
| New feature?  | no
| BC breaks?    | no
| Deprecations? | no
| Tests pass?   | yes
| Fixed tickets |
| License       | MIT
| Doc PR        |

Proper singularization for people into person. This change does not affect singularization of persons.

Commits
-------

5bc4b36 Added people - person inflection
This commit is contained in:
Fabien Potencier 2016-05-23 10:55:51 +02:00
commit 4c5464cc54
2 changed files with 5 additions and 0 deletions

View File

@ -126,6 +126,9 @@ final class Inflector
// chateaux (chateau) // chateaux (chateau)
array('xuae', 4, false, true, 'eau'), array('xuae', 4, false, true, 'eau'),
// people (person)
array('elpoep', 6, true, true, 'person'),
); );
/** /**

View File

@ -107,6 +107,8 @@ class InflectorTest extends \PHPUnit_Framework_TestCase
array('objectives', 'objective'), array('objectives', 'objective'),
array('oxen', 'ox'), array('oxen', 'ox'),
array('parties', 'party'), array('parties', 'party'),
array('people', 'person'),
array('persons', 'person'),
array('phenomena', array('phenomenon', 'phenomenum')), array('phenomena', array('phenomenon', 'phenomenum')),
array('photos', 'photo'), array('photos', 'photo'),
array('pianos', 'piano'), array('pianos', 'piano'),