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 1725525 - [ALL LANG][RHSM CLI] Unlocalized message in service-level module.
Summary: [ALL LANG][RHSM CLI] Unlocalized message in service-level module.
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Enterprise Linux 7
Classification: Red Hat
Component: subscription-manager
Version: 7.7
Hardware: x86_64
OS: Linux
medium
medium
Target Milestone: rc
: ---
Assignee: Jiri Hnidek
QA Contact: Red Hat subscription-manager QE Team
URL:
Whiteboard:
Depends On: 1663408 1682763
Blocks:
TreeView+ depends on / blocked
 
Reported: 2019-07-01 03:30 UTC by Lijun Li
Modified: 2020-09-29 19:23 UTC (History)
9 users (show)

Fixed In Version: subscription-manager-1.24.40-1.el7
Doc Type: If docs needed, set a value
Doc Text:
Clone Of: 1663408
Environment:
Last Closed: 2020-09-29 19:22:47 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Github candlepin subscription-manager pull 2270 0 None closed 1725525: Better translation of syspurpose; ENT-1680 2021-01-05 11:49:22 UTC
Red Hat Product Errata RHBA-2020:3866 0 None None None 2020-09-29 19:23:17 UTC

Description Lijun Li 2019-07-01 03:30:21 UTC
+++ This bug was initially created as a clone of Bug #1663408 +++

Description of problem:
[ALL LANG][RHSM CLI] Unlocalized message in service-level module.

Version-Release number of selected component (if applicable):
subscription-manager-1.23.8-11.el8.x86_64.rpm

How reproducible:
100%

Steps to Reproduce:
1. Install latest rhel8 workstation build.
2. Run rhsm cli from terminal.

Actual results:
# subscription-manager service-level -h
使用:subscription-manager service-level [选项]

这个系统的管理服务等级

选项:
  -h, --help            显示此帮助信息并退出
  --proxy=PROXY_URL     代理服务器 URL 的格式为 proxy_hostname:proxy_port
  --proxyuser=PROXY_USER
                        使用基本验证的 HTTP 代理服务器的用户
  --proxypassword=PROXY_PASSWORD
                        使用基本验证的 HTTP 代理服务器的密码
  --noproxy=NO_PROXY    跳过 HTTP 代理的主机后缀
  --username=USERNAME   在服务器中进行验证时使用的用户名
  --password=PASSWORD   在服务器中进行验证时使用的密码
  --org=ORG_KEY         在列出可用服务等级时,使用机构密钥指定一个机构。只能与 --list 合用。
  --set=SET             Set service_level_agreement of system purpose
  --unset               Unset service_level_agreement of system purpose
^^^^^^^^^^^^^^^^^^^^^^^^^^^^Unlocalized messages.
  --serverurl=SERVER_URL
                        服务器 URL格式为 https://hostname:port/prefix
  --insecure            不需要根据有效证书授权机构检查权利服务器 SSL 证书
  --show                显示这个系统的当前服务等级
  --list                列出所有可用服务等级

# subscription-manager service-level --set="Premium"
service_level_agreement set to "Premium".
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^Unlocalized message.

# subscription-manager service-level --org=test --list
Organization with id test could not be found.
^^^^^^^^^^^^^^^^^^^Unlocalized message.


Expected results:
They should be localized.

Additional info:

Comment 2 Lijun Li 2019-07-01 03:31:25 UTC
This is also reproduced on latest rhel7.7 snapshot build.

Comment 3 Chris Snyder 2019-09-26 14:27:23 UTC
Deferring for consideration in RHEL 7.9 due to development capacity.

Comment 9 John Sefler 2020-06-24 16:56:46 UTC
I will verify this bug against only the four langs [Japanese, French, Korean, Chinese] that were fully translated for rhel-7.9 as committed to in bug 1796833.

Verifying Version...

[root@hpe-dl380pgen8-02-vm-7 ~]# rpm -q subscription-manager
subscription-manager-1.24.42-1.el7.x86_64

[root@hpe-dl380pgen8-02-vm-7 ~]# rpm -q --changelog subscription-manager | grep 1725525
- 1725525: Update keys for translations (csnyder)
- 1725525: Mark one string for translation; ENT-1680 (jhnidek)

___________________________________________________________________

[root@hpe-dl380pgen8-02-vm-7 ~]# for L in en_US ja_JP fr_FR ko_KR zh_CN; do echo ""; echo "# LANG=$L.UTF-8 subscription-manager service-level --help"; LANG=$L.UTF-8 subscription-manager service-level --help; done;

# LANG=en_US.UTF-8 subscription-manager service-level --help
Usage: subscription-manager service-level [OPTIONS]

Manage service levels for this system

Options:
  -h, --help            show this help message and exit
  --proxy=PROXY_URL     proxy URL in the form of proxy_hostname:proxy_port
  --proxyuser=PROXY_USER
                        user for HTTP proxy with basic authentication
  --proxypassword=PROXY_PASSWORD
                        password for HTTP proxy with basic authentication
  --noproxy=NO_PROXY    host suffixes that should bypass HTTP proxy
  --username=USERNAME   username to use when authorizing against the server
  --password=PASSWORD   password to use when authorizing against the server
  --org=ORG_KEY         specify an organization when listing available service
                        levels using the organization key, only used with
                        --list
  --set=SET             Set service_level_agreement of system purpose
  --unset               Unset service_level_agreement of system purpose
  --serverurl=SERVER_URL
                        server URL in the form of https://hostname:port/prefix
  --insecure            do not check the entitlement server SSL certificate
                        against available certificate authorities
  --show                show this system's current service level
  --list                list all service levels available

# LANG=ja_JP.UTF-8 subscription-manager service-level --help
使用方法: subscription-manager service-level [オプション]

このシステムのサービスレベルを管理します

オプション:
  -h, --help            ヘルプメッセージを表示して終了します
  --proxy=PROXY_URL     proxy_hostname:proxy_port 形式のプロキシー URL
  --proxyuser=PROXY_USER
                        Basic 認証で使用する HTTP プロキシーのユーザー
  --proxypassword=PROXY_PASSWORD
                        Basic 認証で使用する HTTP プロキシーのパスワード
  --noproxy=NO_PROXY    HTTP プロキシーを迂回するホストのサフィックス
  --username=USERNAME   サーバーに対して認可する時に使用するユーザー名
  --password=PASSWORD   サーバーに対して認可する時に使用するパスワード
  --org=ORG_KEY         利用可能なサービスレベルを表示する時に組織キーを使用して組織を指定します。--list
                        と併用する場合のみ使用できます
  --set=SET             システムの目的の service_level_agreement を設定します
  --unset               システムの目的の service_level_agreement を設定解除します
  --serverurl=SERVER_URL
                        https://hostname:port/prefix 形式のサーバー URL
  --insecure            エンタイトルメントサーバーの SSL 証明書は、利用可能な認証局と照合されません
  --show                このシステムの現在のサービスレベルを表示します
  --list                使用可能なサービスレベルをすべて表示します

# LANG=fr_FR.UTF-8 subscription-manager service-level --help
Utilisation : subscription-manager service-level [OPTIONS]

Gérer les niveaux de service pour ce système

Options:
  -h, --help            afficher ce message d'aide et quitter
  --proxy=PROXY_URL     URL du proxy est sous la forme
                        proxy_hostname:proxy_port
  --proxyuser=PROXY_USER
                        utilisateur pour proxy HTTP avec authentification de
                        base
  --proxypassword=PROXY_PASSWORD
                        mot de passe pour proxy HTTP avec authentification de
                        base
  --noproxy=NO_PROXY    suffixes hôte qui doivent contourner le proxy HTTP
  --username=USERNAME   nom d'utilisateur à utiliser lors de l'autorisation
                        sur le serveur
  --password=PASSWORD   mot de passe à utiliser lors de l'autorisation sur le
                        serveur
  --org=ORG_KEY         spécifier une organisation lorsque vous répertoriez
                        les niveaux de services disponibles à l'aide de la clé
                        de l'organisation, uniquement utilisé avec --list
  --set=SET             Définir service_level_agreement de l'objectif du
                        système
  --unset               Supprimer service_level_agreement de l'objectif du
                        système
  --serverurl=SERVER_URL
                        URL du serveur est sous la forme
                        https://hostname:port/prefix
  --insecure            Ne pas vérifier le certificat SSL du serveur de droits
                        d'accès avec les autorités de certificats disponibles
  --show                afficher le niveau de service actuel de ce système
  --list                répertorier tous les niveaux de service disponibles

# LANG=ko_KR.UTF-8 subscription-manager service-level --help
사용법: subscription-manager service-level [옵션]

이 시스템의 서비스 레벨 관리

옵션:
  -h, --help            도움말 보기 및 종료
  --proxy=PROXY_URL     proxy_hostname:proxy_port 형식의 프록시 URL
  --proxyuser=PROXY_USER
                        기본 인증을 갖는 HTTP 프록시 사용자
  --proxypassword=PROXY_PASSWORD
                        기본 인증을 갖는 HTTP 프록시 암호
  --noproxy=NO_PROXY    HTTP 프록시를 사용하지 않는 호스트 접미사
  --username=USERNAME   서버 인증시 사용할 사용자 이름
  --password=PASSWORD   서버 인증시 사용할 암호
  --org=ORG_KEY         조직키를 사용하여 사용 가능한 서비스 레벨을 나열할 때 조직을 지정, --list와만 함께 사용할
                        수 있음
  --set=SET             시스템 목적 service_level_agreement 설정
  --unset               시스템 목적 service_level_agreement 설정 해제
  --serverurl=SERVER_URL
                        https://hostname:port/prefix 형식의 서버 URL
  --insecure            사용 가능한 인증 기관에 대해 인타이틀먼트 서버 SSL 인증서를 확인하지 않습니다
  --show                시스템의 현재 서비스 레벨을 표시
  --list                사용 가능한 모든 서비스 레벨 목록 나열

# LANG=zh_CN.UTF-8 subscription-manager service-level --help
使用:subscription-manager service-level [选项]

这个系统的管理服务等级

选项:
  -h, --help            显示此帮助信息并退出
  --proxy=PROXY_URL     代理服务器 URL 的格式为 proxy_hostname:proxy_port
  --proxyuser=PROXY_USER
                        使用基本验证的 HTTP 代理服务器的用户
  --proxypassword=PROXY_PASSWORD
                        使用基本验证的 HTTP 代理服务器的密码
  --noproxy=NO_PROXY    跳过 HTTP 代理的主机后缀
  --username=USERNAME   在服务器中进行验证时使用的用户名
  --password=PASSWORD   在服务器中进行验证时使用的密码
  --org=ORG_KEY         在列出可用服务等级时,使用机构密钥指定一个机构。只能与 --list 合用。
  --set=SET             设置系统目的 service_level_agreement
  --unset               取消设置系统目的 service_level_agreement
  --serverurl=SERVER_URL
                        服务器 URL格式为 https://hostname:port/prefix
  --insecure            不需要根据有效证书授权机构检查权利服务器 SSL 证书
  --show                显示这个系统的当前服务等级
  --list                列出所有可用服务等级


VERIFIED: The translations for "--set=SET" and "--unset" help strings are now displayed to the user.


___________________________________________________________________

[root@hpe-dl380pgen8-02-vm-7 ~]# for L in en_US ja_JP fr_FR ko_KR zh_CN; do echo ""; echo "# LANG=$L.UTF-8 subscription-manager service-level --set=Premium"; LANG=$L.UTF-8 subscription-manager service-level --set=Premium; done;

# LANG=en_US.UTF-8 subscription-manager service-level --set=Premium
service_level_agreement set to "Premium".

# LANG=ja_JP.UTF-8 subscription-manager service-level --set=Premium
service_level_agreement を "Premium" に設定しました。

# LANG=fr_FR.UTF-8 subscription-manager service-level --set=Premium
service_level_agreement défini à "Premium".

# LANG=ko_KR.UTF-8 subscription-manager service-level --set=Premium
service_level_agreement이/가 "Premium로 설정되었습니다.

# LANG=zh_CN.UTF-8 subscription-manager service-level --set=Premium
service_level_agreement 设置为 "Premium"。


VERIFIED: The translations for 'service_level_agreement set to "Premium".' is now displayed to the user.
NEEDINFO: Are you happy with the korean translation?  It appears to be missing a closing double quote character. If this is not acceptable, open a bugzilla against the translation team.

___________________________________________________________________


[root@hpe-dl380pgen8-02-vm-7 ~]# for L in en_US ja_JP fr_FR ko_KR zh_CN; do echo ""; echo "# LANG=$L.UTF-8 subscription-manager --org=test --list"; LANG=$L.UTF-8 subscription-manager service-level --org=test --list; done;

# LANG=en_US.UTF-8 subscription-manager --org=test --list
Organization with id test could not be found.

# LANG=ja_JP.UTF-8 subscription-manager --org=test --list
id test の 組織 が見つかりませんでした。

# LANG=fr_FR.UTF-8 subscription-manager --org=test --list
Organisation avec l’ID test est introuvable.

# LANG=ko_KR.UTF-8 subscription-manager --org=test --list
ID test을(를) 갖는 조직 을 찾을 수 없습니다.

# LANG=zh_CN.UTF-8 subscription-manager --org=test --list
Organization with id test could not be found.


VERIFIED: The translations for 'subscription-manager --org=test --list' is now displayed to the user.
NEEDINFO: The translation for zh_CN failsQA.  I suggest opening a bugzilla against candlepin because this is a candlepin string located here: https://fedora.zanata.org/webtrans/translate?project=candlepin&iteration=candlepin-2.9-HOTFIX&localeId=zh-CN&locale=en-US#view:doc;doc:keys;search:could not be found;textflow:6209413

Comment 10 John Sefler 2020-06-24 17:21:05 UTC
Although this bug has been verified in comment 9, I am setting two NEEDINFOs for the future

NEEDINFO on ljanda to update the Korean translation for subscription-manager msgid: {attr} set to "{val}".
The translated value is missing a closing double quote around {val}:  {attr}이/가 "{val}로 설정되었습니다.

NEEDINFO on nmoumoul to ensure that the next version of candlepin deployed to stage has pulled in the latest string translations for candlepin.  As shown here, there is no translation being returned by candlepin...
[root@hpe-dl380pgen8-02-vm-7 ~]# LANG=zh_CN.UTF-8 subscription-manager service-level --org=test --list
Organization with id test could not be found.

Expected these two strings to be used from the candlepin zanata: https://fedora.zanata.org/webtrans/translate?dswid=-9801&iteration=candlepin-2.9-HOTFIX&project=candlepin&locale=en-US&localeId=zh-CN#doc:keys;textflow:6209413:
msgid: {0} with id {1} could not be found.
mgstr: 没有找到 id 为 {1} 的 {0}
msgid: Organization
mgstr: 机构

Comment 14 errata-xmlrpc 2020-09-29 19:22:47 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 (subscription-manager bug fix 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-2020:3866


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