Mark error message as translatable

This commit is contained in:
Balázs Úr 2022-01-03 22:29:26 +01:00
parent 322b7c856c
commit e698ebf359
2 changed files with 89 additions and 85 deletions

View file

@ -580,7 +580,7 @@ class App
try {
// Missing DB connection: ERROR
if ($this->mode->has(App\Mode::LOCALCONFIGPRESENT) && !$this->mode->has(App\Mode::DBAVAILABLE)) {
throw new HTTPException\InternalServerErrorException('Apologies but the website is unavailable at the moment.');
throw new HTTPException\InternalServerErrorException($this->l10n->t('Apologies but the website is unavailable at the moment.'));
}
if (!$this->mode->isInstall()) {