Further improving the MessageSelector exception

See previous change in #4173 and conversation in #4207
This commit is contained in:
Ryan Weaver 2012-07-14 17:51:05 -05:00
parent 36d12dde5b
commit 480ab14a33
1 changed files with 1 additions and 1 deletions

View File

@ -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".', $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 is %%count%% apples").', $message, $locale));
}
return $standardRules[$position];