Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commitc9742ef

Browse files
lyrixxfabpot
authored andcommitted
[Translator] Use quote to surround invalid locale
1 parent4dbe0e1 commitc9742ef

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

‎src/Symfony/Component/Translation/Translator.php‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -309,7 +309,7 @@ protected function computeFallbackLocales($locale)
309309
privatefunctionassertValidLocale($locale)
310310
{
311311
if (1 !==preg_match('/^[a-z0-9@_\\.\\-]*$/i',$locale)) {
312-
thrownew \InvalidArgumentException(sprintf('Invalidlocale: %s.',$locale));
312+
thrownew \InvalidArgumentException(sprintf('Invalid"%s" locale.',$locale));
313313
}
314314
}
315315
}

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp