Bug 1956764 - [ALL LANG][RHSM CLI] Unlocalized message in role/usage/addon/sla module.
Summary: [ALL LANG][RHSM CLI] Unlocalized message in role/usage/addon/sla module.
Keywords:
Status: POST
Alias: None
Product: Red Hat Enterprise Linux 8
Classification: Red Hat
Component: subscription-manager
Version: 8.5
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: beta
: 8.5
Assignee: Pino Toscano
QA Contact: Red Hat subscription-manager QE Team
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2021-05-04 11:31 UTC by Shwetha Kallesh
Modified: 2021-05-10 19:09 UTC (History)
1 user (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed:
Type: Bug
Target Upstream Version:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Github candlepin subscription-manager pull 2619 0 None closed 1956764: New extraction for translatable strings 2021-05-10 19:08:29 UTC

Description Shwetha Kallesh 2021-05-04 11:31:23 UTC
Description of problem:
[ALL LANG][RHSM CLI] Unlocalized message in role/usage/addon/sla module.

Version-Release number of selected component (if applicable):
[root@ibm-x3650m4-01-vm-14 ~]# subscription-manager version
server type: Red Hat Subscription Management
subscription management server: 3.2.11-1
subscription management rules: 5.41
subscription-manager: 1.28.16-1.el8


How reproducible:


Steps to Reproduce:
[root@ibm-x3650m4-01-vm-14 ~]# LANG=zh_CN.utf-8 subscription-manager role --set "RHEL Server"
Warning: Provided value "RHEL Server" is not included in the list of valid values
 - SP Starter
 - SP Server
role 设置为 "RHEL Server"。

[root@ibm-x3650m4-01-vm-14 ~]# LANG=zh_CN.utf-8 subscription-manager service-level --set "RHEL Server"
Warning: Provided value "RHEL Server" is not included in the list of valid values
 - Super
 - Full-Service
 - Premium
 - Standard
 - None
service_level_agreement 设置为 "RHEL Server"。

[root@ibm-x3650m4-01-vm-14 ~]# LANG=zh_CN.utf-8 subscription-manager usage --set "RHEL Server"
Warning: Provided value "RHEL Server" is not included in the list of valid values
 - Production
 - Development
usage 设置为 "RHEL Server"。

[root@ibm-x3650m4-01-vm-14 ~]# LANG=zh_CN.utf-8 subscription-manager addons --add=test
Warning: Provided value "test" is not included in the list of valid values       ------------> FAILED , warning message is not translated
 - ADDON1
 - ADDON3
 - ADDON2
addons 已更新。





Actual results:

The message "Warning: Provided value "XXXXXX" is not included in the list of valid values" is unlocalised

Expected results:
warning message "Warning: Provided value "RHEL Server" is not included in the list of valid values" should be translated

Additional info:

Comment 1 Pino Toscano 2021-05-04 11:36:21 UTC
To be more precise: the string itself is properly marked for translation (loading it at runtime).
The problem is that I forgot to update the translation catalogs before the release of 1.28.16, so the string is not found in any translation (even if you see it, it is a plural string now).


Note You need to log in before you can comment on or make changes to this bug.