From 5b9265adf5eec1a5e8ae846f3b6a67d15c9c1216 Mon Sep 17 00:00:00 2001 From: Veiko Aasa Date: Mon, 26 Aug 2024 12:56:39 +0300 Subject: [PATCH] plinth: Fix translating app operations Fixes #2420. Tests performed using Debian stable: - Set user language to espanol. Install, repair and remove gitweb app. Check that all app operation messages are in spanish. - All unit tests pass. Signed-off-by: Veiko Aasa Reviewed-by: Sunil Mohan Adapa --- plinth/operation.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plinth/operation.py b/plinth/operation.py index ce8c3095c..6ab6952f9 100644 --- a/plinth/operation.py +++ b/plinth/operation.py @@ -137,7 +137,7 @@ class Operation: """ from django.utils.translation import gettext message = gettext(self.message) - message = message.format(name=self.name, + message = message.format(name=gettext(self.name), exception_message=str(self.exception)) if self.app_id: message = message.format(