Skip to content

Commit

Permalink
Updating comma
Browse files Browse the repository at this point in the history
  • Loading branch information
defrag committed Oct 29, 2015
1 parent b7f9201 commit 9aae131
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
6 changes: 3 additions & 3 deletions spec/Coduo/PHPHumanizer/CollectionSpec.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,9 @@ function it_humanizes_collections()
$examples = array(
array(array("Michal"), null, 'Michal'),
array(array("Michal", "Norbert"), null, 'Michal and Norbert'),
array(array("Michal", "Norbert", "Lukasz"), 2, 'Michal, Norbert and 1 other'),
array(array("Michal", "Norbert", "Lukasz", "Pawel"), 2, 'Michal, Norbert and 2 others'),
array(array("Michal", "Norbert", "Lukasz", "Pawel"), null, 'Michal, Norbert, Lukasz and Pawel'),
array(array("Michal", "Norbert", "Lukasz"), 2, 'Michal, Norbert, and 1 other'),
array(array("Michal", "Norbert", "Lukasz", "Pawel"), 2, 'Michal, Norbert, and 2 others'),
array(array("Michal", "Norbert", "Lukasz", "Pawel"), null, 'Michal, Norbert, Lukasz, and Pawel'),
);

foreach ($examples as $example) {
Expand Down
4 changes: 2 additions & 2 deletions src/Coduo/PHPHumanizer/Resources/translations/oxford.en.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
only_two: "%first% and %second%"
comma_separated: "%list% and %last%"
comma_separated_with_limit: "{1} %list% and 1 other|[2,Inf] %list% and %count% others"
comma_separated: "%list%, and %last%"
comma_separated_with_limit: "{1} %list%, and 1 other|[2,Inf] %list%, and %count% others"

0 comments on commit 9aae131

Please sign in to comment.