From d0b3d89c11227a06e441032c6ffb24985ae4842e Mon Sep 17 00:00:00 2001 From: Petr Lautrbach Date: Tue, 3 Jan 2023 09:32:00 +0100 Subject: [PATCH] sepolicy: Make generated boolean descriptions translatable Signed-off-by: Petr Lautrbach Acked-by: James Carter --- python/sepolicy/sepolicy/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/python/sepolicy/sepolicy/__init__.py b/python/sepolicy/sepolicy/__init__.py index 68907a4f..be89dd2f 100644 --- a/python/sepolicy/sepolicy/__init__.py +++ b/python/sepolicy/sepolicy/__init__.py @@ -1222,7 +1222,7 @@ def boolean_desc(boolean): return _(booleans_dict[boolean][2]) else: desc = boolean.split("_") - return "Allow %s to %s" % (desc[0], " ".join(desc[1:])) + return _("Allow {subject} to {rest}").format(subject=desc[0], rest=" ".join(desc[1:])) def get_os_version():