Skip to content
This repository has been archived by the owner on Jan 30, 2020. It is now read-only.

Commit

Permalink
Fixed translatePlural method so if no translation exists, will defaul…
Browse files Browse the repository at this point in the history
…t to using the $singular string if $number is 1, and the $plural string otherwise (had been reversed).
  • Loading branch information
chrisoconnell committed Jul 15, 2012
5 parents df6a706 + a82fc82 + 7c2a059 + 4fefb53 + 599ee3a commit 42f6f86
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Translator/Translator.php
Original file line number Diff line number Diff line change
Expand Up @@ -333,7 +333,7 @@ public function translatePlural(
);
}

return ($number != 1 ? $singular : $plural);
return ($number == 1 ? $singular : $plural);
}

$index = $this->messages[$textDomain][$locale]
Expand Down

0 comments on commit 42f6f86

Please sign in to comment.