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 688550 - [zh_CN][zh_TW][subscription-manager]WARNING message is not translated after registered system to RHN using RHN classic technology.
Summary: [zh_CN][zh_TW][subscription-manager]WARNING message is not translated after r...
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Enterprise Linux 6
Classification: Red Hat
Component: subscription-manager
Version: 6.1
Hardware: Unspecified
OS: Unspecified
low
low
Target Milestone: rc
: ---
Assignee: Jin Zhao
QA Contact: John Sefler
URL:
Whiteboard:
Depends On:
Blocks: 688592
TreeView+ depends on / blocked
 
Reported: 2011-03-17 11:05 UTC by yuping zhang
Modified: 2013-03-04 05:18 UTC (History)
8 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2011-05-19 13:40:31 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)
WARNING (87.81 KB, image/png)
2011-03-17 11:05 UTC, yuping zhang
no flags Details
zh_CN (19.15 KB, image/png)
2011-03-21 19:25 UTC, John Sefler
no flags Details
PASS(zh_CN) (14.64 KB, image/png)
2011-03-24 04:41 UTC, Jin Zhao
no flags Details
FAILED(zh_TW) (25.60 KB, image/png)
2011-03-24 04:42 UTC, Jin Zhao
no flags Details
PASS(zh_TW)-0.95.6-1 (17.68 KB, image/png)
2011-04-06 05:45 UTC, Jin Zhao
no flags Details
rhn register (18.24 KB, application/octet-stream)
2011-04-07 07:08 UTC, tichen
no flags Details


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHEA-2011:0611 0 normal SHIPPED_LIVE new package: subscription-manager 2011-05-18 17:56:21 UTC

Description yuping zhang 2011-03-17 11:05:00 UTC
Description of problem:
Registered system with rhn_register,then run subscription-manager-gui or command #subscription-manager register,the WARNING message will pop up,the prompt message is not translated. 

Version-Release number of selected component (if applicable):
subscription-manager-debuginfo-0.95.4-1.el6.x86_64
subscription-manager-gnome-0.95.4-1.el6.x86_64
subscription-manager-0.95.4-1.el6.x86_64
subscription-manager-firstboot-0.95.4-1.el6.x86

How reproducible:


Steps to Reproduce:
1.Register system to RHN using RHN Classic technology,run command #rhn_register,then finish register step by step.
2.Run #subscription-manager-gui or run #subscription-manager register 
  
Actual results:

1.WARNING message pop up without be translated.
WARNING

You have already registered with RHN using RHN Classic technology. This tool requires registration using RHN Certificate-Based Entitlement technology.

Except for a few cases, Red Hat recommends customers only register with RHN once.

For more information, including alternate tools, consult this Knowledge Base Article: https://access.redhat.com/kb/docs/DOC-45563 

Expected results:
The WARNING should be translated

Additional info:
1.This issue reproduce both on zh_TW and zh_CN. 
2.In zh_TW.po and zh_CN.po,this WARNING message is not localized.
msgid ""
"WARNING\n"
"\n"
"You have already registered with RHN using RHN Classic technology. This tool"
"requires registration using RHN Certificate-Based Entitlement technology.\n"
"\n"
"Except for a few cases, Red Hat recommends customers only register with RHN"
"once.\n"
"\n"
"For more information, including alternate tools, consult this Knowledge Base"
"Article: https://access.redhat.com/kb/docs/DOC-45563\n"
msgstr ""
"WARNING\n"
"\n"
"You have already registered with RHN using RHN Classic technology. This tool"
"requires registration using RHN Certificate-Based Entitlement technology.\n"
"\n"
"Except for a few cases, Red Hat recommends customers only register with RHN"
"once.\n"
"\n"
"For more information, including alternate tools, consult this Knowledge Base"
"Article: https://access.redhat.com/kb/docs/DOC-45563\n"

Comment 1 yuping zhang 2011-03-17 11:05:40 UTC
Created attachment 485984 [details]
WARNING

Comment 3 Bryan Kearney 2011-03-17 12:55:28 UTC
this is zn_TW only.

-- bk

Comment 4 Terry CHUANG 2011-03-18 00:28:24 UTC
Translation has been updated.

Comment 5 yuping zhang 2011-03-18 01:56:31 UTC
Hi Bryan,

1.This WARNING message is not translated in zh_TW.po file.
2.This WARNING message is translated in zh_CN.po file,but cannot display in subscription-manager-gui and subscription-manager register in zh_CN environment.

(In reply to comment #3)
> this is zn_TW only.
> 
> -- bk

Comment 6 Terry CHUANG 2011-03-18 02:29:40 UTC
The translation has already been updated for zh_TW.po

Comment 7 James Bowes 2011-03-18 16:23:10 UTC
looks like any string from the constants.py file won't get localized at run time, since they'll get imported before the locale is set.

Comment 8 Bryan Kearney 2011-03-18 21:45:12 UTC
Suggestions? Move them out of constants?

Comment 9 James Bowes 2011-03-21 12:21:01 UTC
oh, i sent a patch to the list already :) just made a note to myself about it here. if we initialize the i18n/l10n code before we import anything else, then it's all good.

Comment 10 James Bowes 2011-03-21 13:55:14 UTC
Fix applied to master and RHEL6 branches

Comment 12 John Sefler 2011-03-21 19:25:44 UTC
Created attachment 486673 [details]
zh_CN

VERIFIED...
[root@jsefler-onprem-server ~]# rpm -q subscription-manager-gnome
subscription-manager-gnome-0.95.5-1.git.24.5ce95d1.el6.x86_64
[root@jsefler-onprem-server ~]# touch /etc/sysconfig/rhn/systemid
[root@jsefler-onprem-server ~]# LANG=zh_CN.UTF8 subscription-manager-gui

Comment 13 John Sefler 2011-03-21 19:27:40 UTC
still waiting on newly translated po file for zh_TW for final verification

Comment 15 Jin Zhao 2011-03-24 04:41:19 UTC
Created attachment 487190 [details]
PASS(zh_CN)

Comment 16 Jin Zhao 2011-03-24 04:42:26 UTC
Created attachment 487191 [details]
FAILED(zh_TW)

Package version:
subscription-manager-firstboot-0.95.5-1.el6.i686
subscription-manager-0.95.5-1.el6.i686
subscription-manager-debuginfo-0.95.5-1.el6.i686
subscription-manager-gnome-0.95.5-1.el6.i686

Verify steps:
# rpm -qa |grep subscription
subscription-manager-firstboot-0.95.5-1.el6.i686
subscription-manager-0.95.5-1.el6.i686
subscription-manager-debuginfo-0.95.5-1.el6.i686
subscription-manager-gnome-0.95.5-1.el6.i686
# LANG=zh_CN.UTF8 subscription-manager-gui
# LANG=zh_TW.UTF8 subscription-manager-gui

Verify result:
zh_CN: PASS
zh_TW: FAILED

Comment 17 Bryan Kearney 2011-03-25 13:47:28 UTC
0.95.6 will have the latest translations from i18n (BZ 688592). It contains these translations.

Comment 18 Jin Zhao 2011-04-06 05:45:54 UTC
Created attachment 490143 [details]
PASS(zh_TW)-0.95.6-1

Package version:
subscription-manager-0.95.6-1.el6.i686.rpm            
subscription-manager-firstboot-0.95.6-1.el6.i686.rpm
subscription-manager-debuginfo-0.95.6-1.el6.i686.rpm  
subscription-manager-gnome-0.95.6-1.el6.i686.rpm

Verify steps:
# rpm -qa |grep subscription
subscription-manager-gnome-0.95.6-1.el6.i686
subscription-manager-firstboot-0.95.6-1.el6.i686
subscription-manager-0.95.6-1.el6.i686
subscription-manager-debuginfo-0.95.6-1.el6.i686
# LANG=zh_TW.UTF8 subscription-manager-gui

Verify result:
zh_TW: PASS

Comment 20 tichen 2011-04-07 07:08:23 UTC
Created attachment 490484 [details]
rhn register

PASS(zh_CH)-0.95.6-1

Package version:
subscription-manager-0.95.6-1.el6.i686.rpm            
subscription-manager-firstboot-0.95.6-1.el6.i686.rpm
subscription-manager-debuginfo-0.95.6-1.el6.i686.rpm  
subscription-manager-gnome-0.95.6-1.el6.i686.rpm

Verify result:
zh_CH: PASS

Comment 21 errata-xmlrpc 2011-05-19 13:40:31 UTC
An advisory has been issued which should help the problem
described in this bug report. This report is therefore being
closed with a resolution of ERRATA. For more information
on therefore solution and/or where to find the updated files,
please follow the link below. You may reopen this bug report
if the solution does not work for you.

http://rhn.redhat.com/errata/RHEA-2011-0611.html


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