Bug 749832

Summary: dynamic strings are not getting translated in subscription-manager-firstboot
Product: Red Hat Enterprise Linux 5 Reporter: John Sefler <jsefler>
Component: subscription-managerAssignee: William Poteat <wpoteat>
Status: CLOSED CURRENTRELEASE QA Contact: IDM QE LIST <seceng-idm-qe-list>
Severity: medium Docs Contact:
Priority: unspecified    
Version: 5.8CC: alikins, bkearney, lijli, skallesh, spandey
Target Milestone: rc   
Target Release: 5.8   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2012-05-29 19:04:25 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Bug Depends On:    
Bug Blocks: 715031    
Attachments:
Description Flags
dynamic strings are not translated in firstboot
none
another example of a dynamic string that is not translated in firstboot, but IS translated in subscription-manager-gui
none
dynamic strings are now translated in firstboot
none
verified dynamic strings from comment 2 are now translated in firstboot none

Description John Sefler 2011-10-28 16:20:46 UTC
Description of problem:
The circled strings in the attached screenshot are not translated when running firstboot.  However, they are translated when running subscription-manager-gui.

Common to all these strings is that they are dynamically generated with a formatted date or number as a substring.

Observation: if already registered before starting firstboot, then the "All Available Subscriptions" tab is translated.



Version-Release number of selected component (if applicable):
[root@jsefler-onprem-62server ~]# rpm -q subscription-manager-gnome
subscription-manager-gnome-0.96.17-1.el6.x86_64

How reproducible:


Steps to Reproduce:
1. LANG=ja_JP.UTF8 firstboot --reconfig
2.
3.
  
Actual results:


Expected results:


Additional info:

Comment 1 John Sefler 2011-10-28 16:22:32 UTC
Created attachment 530689 [details]
dynamic strings are not translated in firstboot

Comment 2 John Sefler 2011-10-28 16:33:07 UTC
Created attachment 530692 [details]
another example of a dynamic string that is not translated in firstboot, but IS translated in subscription-manager-gui

Comment 4 Adrian Likins 2011-11-11 15:49:21 UTC
commit 94ed3a119e5cf75664266eddfbd009b7ddc59420
Author: Adrian Likins <alikins>
Date:   Tue Oct 18 16:47:58 2011 -0400

    742013: more fixes for translations in firstboot
    
    firstboot is resetting textdomain, so set it
    in the modules we are pulling strings from

Comment 5 John Sefler 2011-12-15 17:14:15 UTC
Created attachment 547386 [details]
dynamic strings are now translated in firstboot

Verifying Version...
# rpm -q subscription-manager-firstboot
subscription-manager-firstboot-0.98.8-1.git.5.f6a5a52.el5_7

See all circled strings that are now translated during the firstboot workflow when started while not registered.

# rm /etc/sysconfig/firstboot
# LANG=de_DE.UTF-8 firstboot

Comment 6 John Sefler 2011-12-15 17:15:57 UTC
Created attachment 547387 [details]
verified dynamic strings from comment 2 are now translated in firstboot

Comment 7 John Sefler 2011-12-15 17:17:26 UTC
moving to VERIFIED