Merge pull request #14891 from annando/issue-14890

Issue 14890: Translate page titles
This commit is contained in:
Philipp 2025-05-03 21:57:55 +02:00 committed by GitHub
commit b38c754446
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -198,7 +198,7 @@ class Page implements ArrayAccess
) {
// Default title: current module called
if (empty($this->page['title']) && $args->getModuleName()) {
$this->page['title'] = ucfirst($args->getModuleName());
$this->page['title'] = $l10n->t(ucfirst($args->getModuleName()));
}
// Prepend the sitename to the page title