Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit d1c0fb6

Browse filesBrowse files
timporterfabpot
authored andcommitted
[Strings][EnglishInflector] Fix incorrect pluralisation of 'Album'
1 parent b3baa36 commit d1c0fb6
Copy full SHA for d1c0fb6

File tree

2 files changed

+5
-0
lines changed
Filter options

2 files changed

+5
-0
lines changed

‎src/Symfony/Component/String/Inflector/EnglishInflector.php

Copy file name to clipboardExpand all lines: src/Symfony/Component/String/Inflector/EnglishInflector.php
+3Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -238,6 +238,9 @@ final class EnglishInflector implements InflectorInterface
238238
// teeth (tooth)
239239
['htoot', 5, true, true, 'teeth'],
240240

241+
// albums (album)
242+
['mubla', 5, true, true, 'albums'],
243+
241244
// bacteria (bacterium), criteria (criterion), phenomena (phenomenon)
242245
['mu', 2, true, true, 'a'],
243246

‎src/Symfony/Component/String/Tests/Inflector/EnglishInflectorTest.php

Copy file name to clipboardExpand all lines: src/Symfony/Component/String/Tests/Inflector/EnglishInflectorTest.php
+2Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@ public static function singularizeProvider()
2424
['accesses', 'access'],
2525
['addresses', 'address'],
2626
['agendas', 'agenda'],
27+
['albums', 'album'],
2728
['alumnae', 'alumna'],
2829
['alumni', 'alumnus'],
2930
['analyses', ['analys', 'analyse', 'analysis']],
@@ -179,6 +180,7 @@ public static function pluralizeProvider()
179180
['address', 'addresses'],
180181
['agenda', 'agendas'],
181182
['aircraft', 'aircraft'],
183+
['album', 'albums'],
182184
['alumnus', 'alumni'],
183185
['analysis', 'analyses'],
184186
['antenna', 'antennas'], // antennae

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.