Hide Forgot
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"
Created attachment 485984 [details] WARNING
this is zn_TW only. -- bk
Translation has been updated.
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
The translation has already been updated for zh_TW.po
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.
Suggestions? Move them out of constants?
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.
Fix applied to master and RHEL6 branches
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
still waiting on newly translated po file for zh_TW for final verification
Created attachment 487190 [details] PASS(zh_CN)
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
0.95.6 will have the latest translations from i18n (BZ 688592). It contains these translations.
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
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
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