mirror of
https://github.com/wallabag/wallabag.git
synced 2025-03-13 22:52:39 +00:00
Canonicalize content language
For example, ensure that pt_br or pt-br are all converted to pt_BR before being stored. Signed-off-by: Kevin Decherf <kevin@kdecherf.com>
This commit is contained in:
parent
063bed0010
commit
c2d2be6f52
1 changed files with 1 additions and 1 deletions
|
@ -102,7 +102,7 @@ class ContentProxy
|
|||
);
|
||||
|
||||
if (0 === \count($errors)) {
|
||||
$entry->setLanguage($value);
|
||||
$entry->setLanguage(\Locale::canonicalize($value));
|
||||
|
||||
return;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue