Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.
RHEL Engineering is moving the tracking of its product development work on RHEL 6 through RHEL 9 to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "RHEL project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs in the statuses "NEW", "ASSIGNED", and "POST" are being migrated throughout September 2023. Bugs of Red Hat partners with an assigned Engineering Partner Manager (EPM) are migrated in late September as per pre-agreed dates. Bugs against components "kernel", "kernel-rt", and "kpatch" are only migrated if still in "NEW" or "ASSIGNED". If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "RHEL project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/RHEL-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.

Bug 2152806

Summary: [ja_JP][zh_CN][Cockpit-SELinux] Some strings are displayed in English
Product: Red Hat Enterprise Linux 9 Reporter: Twinkle <tpardesh>
Component: policycoreutilsAssignee: Petr Lautrbach <plautrba>
Status: CLOSED ERRATA QA Contact: Twinkle <tpardesh>
Severity: medium Docs Contact:
Priority: medium    
Version: 9.1CC: bbarve, dwalsh, jwboyer, ljanda, lvrabec, mmalik, plautrba, vmojzis, zpytela
Target Milestone: rcKeywords: Translation, Triaged
Target Release: ---Flags: pm-rhel: mirror+
Hardware: x86_64   
OS: Unspecified   
Whiteboard:
Fixed In Version: policycoreutils-3.5-0.rc3.1.1.el9 Doc Type: No Doc Update
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2023-05-09 08:25:00 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Attachments:
Description Flags
Attaching screenshots of ja_JP locale which displays some strings in English on SELinux page
none
sepolicy: Make generated boolean descriptions translatable none

Description Twinkle 2022-12-13 06:32:12 UTC
Created attachment 1932274 [details]
Attaching screenshots of ja_JP locale which displays some strings in English on SELinux page

Description of problem: As per the 9.1 L10N QA event results, Some strings are displayed in English on SELinux page


Version-Release number of selected component (if applicable):
container-selinux - container-selinux-2.189.0-1.el9
policycoreutils - policycoreutils-3.4-4.el9.x86_64

How reproducible:
always

Steps to Reproduce:
1. Open and login to Cockpit in localized language
2. Click on SELinux from left hand side menu
3. Strings are seen on SELinux page on right in English

Actual results:
Some strings are displayed in English 

Expected results:
All strings are in localized language

Additional info:
Please refer attached screenshot reference.

Comment 8 Petr Lautrbach 2022-12-20 09:42:28 UTC
Created attachment 1933734 [details]
sepolicy: Make generated boolean descriptions translatable

I'm ready to send this patch upstream for review. 

It would result into the following selinux-python.pot change which would allow to translate strings "Allow" and "to" and to re-arrange translated strings.

diff --git a/python/po/python.pot b/python/po/python.pot
index aa4102a8dd6b..7e800a3fd038 100644
--- a/python/po/python.pot
+++ b/python/po/python.pot
@@ -2389,6 +2389,11 @@ msgstr ""
 msgid "unknown"
 msgstr ""
 
+#: ../sepolicy/sepolicy/__init__.py:1225
+#, python-brace-format
+msgid "Allow {subject} to {rest}"
+msgstr ""
+
 #: ../sepolicy/sepolicy/interface.py:222
 #, python-format
 msgid "Compiling %s interface"

Comment 23 errata-xmlrpc 2023-05-09 08:25:00 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory (policycoreutils bug fix and enhancement update), and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

https://access.redhat.com/errata/RHBA-2023:2561