mirror of
https://github.com/freedombox/FreedomBox.git
synced 2026-03-11 09:04:54 +00:00
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 <veiko17@disroot.org> Reviewed-by: Sunil Mohan Adapa <sunil@medhas.org>
This commit is contained in:
parent
13a1f59103
commit
5b9265adf5
@ -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(
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user