mirror of
https://github.com/wallabag/wallabag.git
synced 2025-07-22 17:18:37 +00:00
Use Locale instead of Language
This commit is contained in:
parent
e9056dd96f
commit
42f3bb2c63
2 changed files with 80 additions and 16 deletions
|
@ -7,7 +7,7 @@ use Psr\Log\LoggerInterface;
|
|||
use Wallabag\CoreBundle\Entity\Entry;
|
||||
use Wallabag\CoreBundle\Tools\Utils;
|
||||
use Symfony\Component\HttpFoundation\File\MimeType\MimeTypeExtensionGuesser;
|
||||
use Symfony\Component\Validator\Constraints\Language as LanguageConstraint;
|
||||
use Symfony\Component\Validator\Constraints\Locale as LocaleConstraint;
|
||||
use Symfony\Component\Validator\Constraints\Url as UrlConstraint;
|
||||
use Symfony\Component\Validator\Validator\ValidatorInterface;
|
||||
|
||||
|
@ -176,7 +176,7 @@ class ContentProxy
|
|||
{
|
||||
$errors = $this->validator->validate(
|
||||
$value,
|
||||
(new LanguageConstraint())
|
||||
(new LocaleConstraint())
|
||||
);
|
||||
|
||||
if (0 === count($errors)) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue