Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
S
syncEnrollments
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Yeray Santana Hualde
syncEnrollments
Commits
adc23dc9
Commit
adc23dc9
authored
Sep 10, 2012
by
Jason Walton
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Added traffic and chassis as uncountable words to properly feed pluralizer
Signed-off-by:
Jason Walton
<
jwalton512@gmail.com
>
parent
a5bb035e
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
11 additions
and
4 deletions
+11
-4
strings.php
application/config/strings.php
+3
-1
strings.php
laravel/tests/application/config/strings.php
+5
-2
str.test.php
laravel/tests/cases/str.test.php
+3
-1
No files found.
application/config/strings.php
View file @
adc23dc9
...
...
@@ -96,6 +96,8 @@ return array(
'sheep'
,
'species'
,
'moose'
,
'chassis'
,
'traffic'
,
),
/*
...
...
laravel/tests/application/config/strings.php
View file @
adc23dc9
...
...
@@ -8,7 +8,7 @@ return array(
|--------------------------------------------------------------------------
|
| This array contains the singular and plural forms of words. It's used by
| the "singular" and "plural" methods
o
n the Str class to convert a given
| the "singular" and "plural" methods
i
n the Str class to convert a given
| word from singular to plural and vice versa.
|
| Note that the regular expressions are only for inflecting English words.
...
...
@@ -95,6 +95,9 @@ return array(
'series'
,
'sheep'
,
'species'
,
'moose'
,
'chassis'
,
'traffic'
,
),
/*
...
...
laravel/tests/cases/str.test.php
View file @
adc23dc9
...
...
@@ -96,6 +96,8 @@ class StrTest extends PHPUnit_Framework_TestCase {
$this
->
assertEquals
(
'Users'
,
Str
::
plural
(
'User'
));
$this
->
assertEquals
(
'user'
,
Str
::
plural
(
'user'
,
1
));
$this
->
assertEquals
(
'users'
,
Str
::
plural
(
'user'
,
2
));
$this
->
assertEquals
(
'chassis'
,
Str
::
plural
(
'chassis'
,
2
));
$this
->
assertEquals
(
'traffic'
,
Str
::
plural
(
'traffic'
,
2
));
}
/**
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment