Further improving the MessageSelector exception
See previous change in #4173 and conversation in #4207
This commit is contained in:
parent
36d12dde5b
commit
480ab14a33
@ -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];
|
||||
|
Reference in New Issue
Block a user