Bug 2013156

Summary: [ALL_LANG][RHSM CLI] Unlocalized message in addons module.
Product: Red Hat Enterprise Linux 8 Reporter: Lijun Li <lijli>
Component: subscription-managerAssignee: candlepin-bugs
Status: CLOSED CURRENTRELEASE QA Contact: Red Hat subscription-manager QE Team <rhsm-qe>
Severity: medium Docs Contact:
Priority: medium    
Version: 8.5CC: jsefler, ljanda, qe-i18n-bugs
Target Milestone: rcKeywords: i18n, Translation
Target Release: ---   
Hardware: x86_64   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2022-02-17 18:40:30 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:

Description Lijun Li 2021-10-12 09:09:32 UTC
Description of problem:
[ALL_LANG][RHSM CLI] Unlocalized message in addons module. 

Version-Release number of selected component (if applicable):
subscription-manager-1.28.21-2.el8.x86_64

How reproducible:
100%

Steps to Reproduce:
1. Run RHSM CLI with latest rhel8 workstation build.

Actual results:
[root@localhost ~]# subscription-manager addons --list
There are no available values for the system purpose "addons" from the available subscriptions in this organization.
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^Unlocalized strings^^^^^^^^^^^^^^^^^^^^^^^^^
[root@localhost ~]# subscription-manager addons --add test
Warning: This organization does not have any subscriptions that provide a system purpose "addons".  This setting will not influence auto-attaching subscriptions.
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^Unlocalized strings^^^^^^^^^^^^^^^^^^^^^^^^^
addons を更新しました。


Expected results:
It should be localized.

Additional info:

Comment 1 John Sefler 2021-10-15 13:54:12 UTC
Please re-test with subscription-manager-1.28.21-3.el8 from https://errata.devel.redhat.com/advisory/75537/builds

[root@kvm-01-guest10 ~]# rpm -q subscription-manager
subscription-manager-1.28.21-3.el8.x86_64

[root@kvm-01-guest10 ~]# msgunfmt --no-wrap /usr/share/locale/ja/LC_MESSAGES/rhsm.mo | grep -A1 "There are no available"
msgid "There are no available values for the system purpose \"{syspurpose_attr}\" from the available subscriptions in this organization."
msgstr "この組織には、利用可能なサブスクリプションからシステム目的の「{syspurpose_attr}」に使用できる値がありません。"

[root@kvm-01-guest10 ~]# msgunfmt --no-wrap /usr/share/locale/ja/LC_MESSAGES/rhsm.mo | grep -A1 "This organization does not have"
msgid "Warning: This organization does not have any subscriptions that provide a system purpose \"{attr}\".  This setting will not influence auto-attaching subscriptions."
msgstr "警告: この組織には、システム目的「{attr}」を提供するサブスクリプションがありません。この設定は、自動割り当てサブスクリプションには影響しません。"
[root@kvm-01-guest10 ~]# 


Note: all langs are not 100% translated - see bug 1944093

Comment 2 Lijun Li 2021-10-25 08:05:16 UTC
Verified it's fixed on latest build.

[root@localhost ~]# rpm -q subscription-manager
subscription-manager-1.28.21-3.el8.x86_64
[root@localhost ~]# subscription-manager addons --list
この組織には、利用可能なサブスクリプションからシステム目的の「addons」に使用できる値がありません。
[root@localhost ~]# subscription-manager addons --add test
警告: この組織には、システム目的「addons」を提供するサブスクリプションがありません。この設定は、自動割り当てサブスクリプションには影響しません。
addons を更新しました。

Comment 3 Pino Toscano 2022-02-17 18:40:30 UTC
Fixed in RHEL 8.5, closing accordingly.