Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
U
UserAdminV2
Overview
Overview
Details
Activity
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
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
庄欣
UserAdminV2
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
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
8 additions
and
1 deletions
+8
-1
application/config/strings.php
+2
-0
laravel/tests/application/config/strings.php
+4
-1
laravel/tests/cases/str.test.php
+2
-0
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