Several accessibility improvements

This commit is contained in:
Michael 2025-01-26 12:35:26 +00:00
parent 8bf3d6694a
commit c978c8e027
20 changed files with 45 additions and 35 deletions

View file

@ -498,8 +498,10 @@ class Post
}
$languages = [];
$language = '';
if (!empty($item['language'])) {
$languages = DI::l10n()->t('Languages');
$language = array_key_first(json_decode($item['language'], true));
}
if (in_array($item['private'], [Item::PUBLIC, Item::UNLISTED]) && in_array($item['network'], Protocol::FEDERATED)) {
@ -579,6 +581,7 @@ class Post
'tagger' => $tagger,
'filer' => $filer,
'language' => $languages,
'lang' => $language,
'searchtext' => DI::l10n()->t('Search Text'),
'drop' => $drop,
'block' => $block,