From 480ab14a333d3955264e038a1ecb238f7185e890 Mon Sep 17 00:00:00 2001 From: Ryan Weaver Date: Sat, 14 Jul 2012 17:51:05 -0500 Subject: [PATCH] Further improving the MessageSelector exception See previous change in #4173 and conversation in #4207 --- src/Symfony/Component/Translation/MessageSelector.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Symfony/Component/Translation/MessageSelector.php b/src/Symfony/Component/Translation/MessageSelector.php index 6d8f0092aa..4c62395b3b 100644 --- a/src/Symfony/Component/Translation/MessageSelector.php +++ b/src/Symfony/Component/Translation/MessageSelector.php @@ -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];