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.
Description of problem:
msgids like the following are used in subscription-manager lists to format blocks of data:
msgid "Product ID: \t%s"
msgid "Product Name: \t%s"
msgid "Version: \t%s"
The problem with this msgid is that the foreign language translators often neglect the white space in their translations and as a result we get ugly formatted output. For example compare english and ml_IN:
[root@jsefler-6 ~]# subscription-manager list --installed
+-------------------------------------------+
Installed Product Status
+-------------------------------------------+
Product Name: Red Hat Enterprise Linux Server
Product ID: 69
Version: 6.4
Arch: x86_64
Status: Not Subscribed
Starts:
Ends:
[root@jsefler-6 ~]# LANG=ml_IN.UTF-8 subscription-manager list --installed
+-------------------------------------------+
ഇന്സ്റ്റോള് ചെയ്ത പ്രൊഡക്ടിന്റെ അവസ്ഥ
+-------------------------------------------+
പ്രൊഡക്ടിന്റെ പേരു്: Red Hat Enterprise Linux Server
പ്രൊഡക്ട് ഐഡി: 69
പതിപ്പു്: 6.4
ആര്ക്ക്: x86_64
അവസ്ഥ: അംഗമായിട്ടില്ല
ആരംഭം:
അവസാനം:
^^^^^^^ Notice that the data does not appear columnar in ml_IN like it does in English. There are two contributors to this ugliness..
Contributing Factor 1: The translators need to stop stripping out the "\t" formatting:
[root@jsefler-6 ~]# pofilter --gnome -t tabs /usr/share/locale/ml/LC_MESSAGES/rhsm.po | grep msg -A1 -B1
processing 1 files...
[###########################################] 100%
msgid ""
msgstr ""
"Project-Id-Version: PACKAGE VERSION\n"
--
# (pofilter) tabs: Different tabs
msgid "Product ID: \t%s"
msgstr "പ്രൊഡക്ട് ഐഡി: %s"
# (pofilter) tabs: Different tabs
msgid "Product Name: \t%s"
msgstr "പ്രൊഡക്ടിന്റെ പേരു്: %s"
# (pofilter) tabs: Different tabs
msgid "Version: \t%s"
msgstr "പതിപ്പു്: %s"
[root@jsefler-6 ~]#
Contributing Factor 2: We can avoid problem 1 in the source code by changing the formatting style for msgids of this type:
msgid "Product ID: \t%s"
msgid "Product Name: \t%s"
msgid "Version: \t%s"
Stop using that ^ format and starting using string padding like this:
msgid "Product ID:"
msgid "Product Name:"
msgid "Version:"
String.format("%-22s", "Product ID:")+productIDValue;
^^^^^ In Java, this will left justify "Product ID:" within a 22 space character field. (Sorry - I don't know the python syntax for padding strings.)
Also note that you should use a max function on the field width to make sure the width is greater than the actual translated label.
Version-Release number of selected component (if applicable):
[root@jsefler-6 ~]# rpm -q subscription-manager
subscription-manager-1.1.18-1.el6.x86_64
This problem has existed since the first version of subscription-manager.
Use this bug to initiate a solution to Contributing Factor 2 discussed above.
Contributing Factor 1 is covered by other bugs that are assigned to the translators.
Description of problem: msgids like the following are used in subscription-manager lists to format blocks of data: msgid "Product ID: \t%s" msgid "Product Name: \t%s" msgid "Version: \t%s" The problem with this msgid is that the foreign language translators often neglect the white space in their translations and as a result we get ugly formatted output. For example compare english and ml_IN: [root@jsefler-6 ~]# subscription-manager list --installed +-------------------------------------------+ Installed Product Status +-------------------------------------------+ Product Name: Red Hat Enterprise Linux Server Product ID: 69 Version: 6.4 Arch: x86_64 Status: Not Subscribed Starts: Ends: [root@jsefler-6 ~]# LANG=ml_IN.UTF-8 subscription-manager list --installed +-------------------------------------------+ ഇന്സ്റ്റോള് ചെയ്ത പ്രൊഡക്ടിന്റെ അവസ്ഥ +-------------------------------------------+ പ്രൊഡക്ടിന്റെ പേരു്: Red Hat Enterprise Linux Server പ്രൊഡക്ട് ഐഡി: 69 പതിപ്പു്: 6.4 ആര്ക്ക്: x86_64 അവസ്ഥ: അംഗമായിട്ടില്ല ആരംഭം: അവസാനം: ^^^^^^^ Notice that the data does not appear columnar in ml_IN like it does in English. There are two contributors to this ugliness.. Contributing Factor 1: The translators need to stop stripping out the "\t" formatting: [root@jsefler-6 ~]# pofilter --gnome -t tabs /usr/share/locale/ml/LC_MESSAGES/rhsm.po | grep msg -A1 -B1 processing 1 files... [###########################################] 100% msgid "" msgstr "" "Project-Id-Version: PACKAGE VERSION\n" -- # (pofilter) tabs: Different tabs msgid "Product ID: \t%s" msgstr "പ്രൊഡക്ട് ഐഡി: %s" # (pofilter) tabs: Different tabs msgid "Product Name: \t%s" msgstr "പ്രൊഡക്ടിന്റെ പേരു്: %s" # (pofilter) tabs: Different tabs msgid "Version: \t%s" msgstr "പതിപ്പു്: %s" [root@jsefler-6 ~]# Contributing Factor 2: We can avoid problem 1 in the source code by changing the formatting style for msgids of this type: msgid "Product ID: \t%s" msgid "Product Name: \t%s" msgid "Version: \t%s" Stop using that ^ format and starting using string padding like this: msgid "Product ID:" msgid "Product Name:" msgid "Version:" String.format("%-22s", "Product ID:")+productIDValue; ^^^^^ In Java, this will left justify "Product ID:" within a 22 space character field. (Sorry - I don't know the python syntax for padding strings.) Also note that you should use a max function on the field width to make sure the width is greater than the actual translated label. Version-Release number of selected component (if applicable): [root@jsefler-6 ~]# rpm -q subscription-manager subscription-manager-1.1.18-1.el6.x86_64 This problem has existed since the first version of subscription-manager.