Bug 749832 - dynamic strings are not getting translated in subscription-manager-firstboot
Summary: dynamic strings are not getting translated in subscription-manager-firstboot
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: Red Hat Enterprise Linux 5
Classification: Red Hat
Component: subscription-manager
Version: 5.8
Hardware: Unspecified
OS: Unspecified
unspecified
medium
Target Milestone: rc
: 5.8
Assignee: William Poteat
QA Contact: IDM QE LIST
URL:
Whiteboard:
Depends On:
Blocks: 715031
TreeView+ depends on / blocked
 
Reported: 2011-10-28 16:20 UTC by John Sefler
Modified: 2013-01-10 10:57 UTC (History)
5 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2012-05-29 19:04:25 UTC
Target Upstream Version:


Attachments (Terms of Use)
dynamic strings are not translated in firstboot (186.49 KB, image/png)
2011-10-28 16:22 UTC, John Sefler
no flags Details
another example of a dynamic string that is not translated in firstboot, but IS translated in subscription-manager-gui (166.36 KB, image/png)
2011-10-28 16:33 UTC, John Sefler
no flags Details
dynamic strings are now translated in firstboot (126.79 KB, image/png)
2011-12-15 17:14 UTC, John Sefler
no flags Details
verified dynamic strings from comment 2 are now translated in firstboot (117.83 KB, image/png)
2011-12-15 17:15 UTC, John Sefler
no flags Details

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


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