mirror of
https://github.com/wallabag/wallabag.git
synced 2025-09-15 18:57:05 +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)) {
|
if (0 === \count($errors)) {
|
||||||
$entry->setLanguage($value);
|
$entry->setLanguage(\Locale::canonicalize($value));
|
||||||
|
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue