sepolicy: Make generated boolean descriptions translatable

Signed-off-by: Petr Lautrbach <lautrbach@redhat.com>
Acked-by: James Carter <jwcart2@gmail.com>
This commit is contained in:
Petr Lautrbach 2023-01-03 09:32:00 +01:00 committed by James Carter
parent fa936a0a30
commit d0b3d89c11
1 changed files with 1 additions and 1 deletions

View File

@ -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():