[Translation] fixed typo

This commit is contained in:
Fabien Potencier 2012-07-15 09:21:44 +02:00
parent 3fff47acff
commit a539858dd3
1 changed files with 2 additions and 2 deletions

View File

@ -29,7 +29,7 @@ class MessageSelector
* The message supports two different types of pluralization rules:
*
* interval: {0} There are no apples|{1} There is one apple|]1,Inf] There are %count% apples
* indexed: There is one apple|There is %count% apples
* indexed: There is one apple|There are %count% apples
*
* The indexed solution can also contain labels (e.g. one: There is one apple).
* This is purely for making the translations more clear - it does not
@ -74,7 +74,7 @@ class MessageSelector
$position = PluralizationRules::get($number, $locale);
if (!isset($standardRules[$position])) {
throw new \InvalidArgumentException(sprintf('Unable to choose a translation for "%s" with locale "%s". Double check that this translation has the correct plural options (e.g. "There is one apple|There is %%count%% apples").', $message, $locale));
throw new \InvalidArgumentException(sprintf('Unable to choose a translation for "%s" with locale "%s". Double check that this translation has the correct plural options (e.g. "There is one apple|There are %%count%% apples").', $message, $locale));
}
return $standardRules[$position];