We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4dbe0e1 commit c9742efCopy full SHA for c9742ef
src/Symfony/Component/Translation/Translator.php
@@ -309,7 +309,7 @@ protected function computeFallbackLocales($locale)
309
private function assertValidLocale($locale)
310
{
311
if (1 !== preg_match('/^[a-z0-9@_\\.\\-]*$/i', $locale)) {
312
- throw new \InvalidArgumentException(sprintf('Invalid locale: %s.', $locale));
+ throw new \InvalidArgumentException(sprintf('Invalid "%s" locale.', $locale));
313
}
314
315
0 commit comments