From c1c32def339bd71391a395d317350283b8ac44a7 Mon Sep 17 00:00:00 2001 From: Git'Fellow <12234510+solracsf@users.noreply.github.com> Date: Thu, 6 Aug 2026 18:41:53 +0100 Subject: [PATCH] fix(whitelisting): Make the blocked app message translatable again The app id was interpolated into the string handed to IL10N::t(), so the lookup key differed for every blocked app and matched no entry in any catalogue. The message was therefore always shown in English, and the string extraction never picked it up either. Pass the app id as a translation parameter instead. Signed-off-by: Git'Fellow <12234510+solracsf@users.noreply.github.com> Signed-off-by: Carl Schwan --- lib/AppWhitelist.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/AppWhitelist.php b/lib/AppWhitelist.php index 470e2df2..5d891f00 100644 --- a/lib/AppWhitelist.php +++ b/lib/AppWhitelist.php @@ -83,7 +83,8 @@ public function verifyAccess(IUser $user, IRequest $request): void { if (!$this->isUrlAllowed($user, $url)) { header('HTTP/1.0 403 Forbidden'); Template::printErrorPage($this->l10n->t( - "Access to this resource ($app) is forbidden for guests." + 'Access to this resource (%s) is forbidden for guests.', + [$app] )); exit; }