Bug 688550

Summary: [zh_CN][zh_TW][subscription-manager]WARNING message is not translated after registered system to RHN using RHN classic technology.
Product: Red Hat Enterprise Linux 6 Reporter: yuping zhang <yupzhang>
Component: subscription-managerAssignee: Jin Zhao <jzhao>
Status: CLOSED ERRATA QA Contact: John Sefler <jsefler>
Severity: low Docs Contact:
Priority: low    
Version: 6.1CC: bkearney, jzhao, mshao, qe-i18n-bugs, rwu, tchuang, tichen, yupzhang
Target Milestone: rcKeywords: Translation
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2011-05-19 13:40:31 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On:    
Bug Blocks: 688592    
Attachments:
Description Flags
WARNING
none
zh_CN
none
PASS(zh_CN)
none
FAILED(zh_TW)
none
PASS(zh_TW)-0.95.6-1
none
rhn register none

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