Bug 876294

Summary: String Updates: rhn-migrate-classic-to-rhsm terminology updates
Product: Red Hat Enterprise Linux 6 Reporter: Matt Reid <mreid>
Component: subscription-managerAssignee: Bryan Kearney <bkearney>
Status: CLOSED ERRATA QA Contact: IDM QE LIST <seceng-idm-qe-list>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 6.4CC: bkearney, jsefler
Target Milestone: rc   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2013-02-21 09:00:26 UTC Type: Bug
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: 771481, 840993    

Description Matt Reid 2012-11-13 18:38:45 UTC
Description of problem:

Now that we have aliases in place for the cli commands and most of the other terms have been updated, there are a few additional strings we should update within migration.


#: ../bin/rhn-migrate-classic-to-rhsm:73
msgid ""
"Service level to subscribe this system to. For no service level use --""service-level=\"\""
1. "service level followed when attaching subscriptions, for no service level use --service-level=\"\""

#: ../bin/rhn-migrate-classic-to-rhsm:455
msgid "Launching the GUI tool to manually subscribe the system ..."
msgstr ""
2. "Launching the GUI tool to manually attach subscriptions to this system..."

#: ../bin/rhn-migrate-classic-to-rhsm:458
msgid "Attempting to auto-subscribe to appropriate subscriptions ..."
3. "Attempting to auto-attach to appropriate subscriptions..."

#: ../bin/rhn-migrate-classic-to-rhsm:69
msgid   "Launch the GUI tool to subscribe the system, instead of   autosubscribing"
4. "launch the GUI tool to attach subscriptions, instead of autoattaching"

#: ../bin/rhn-migrate-classic-to-rhsm:71
msgid ""
"Don't execute the autosubscribe option while registering with subscription "
"manager."
5. "don't execute the autoattach option while registering using subscription manager"

#: ../bin/rhn-migrate-classic-to-rhsm:458
msgid "Attempting to auto-subscribe to appropriate subscriptions ..."
msgstr ""
6. "Attempting to auto-attach appropriate subscriptions..."

#: ../bin/rhn-migrate-classic-to-rhsm:467
msgid ""
"\n"
"Unable to auto-subscribe.  Do your existing subscriptions match the products "
"installed on this system?"
msgstr ""
7. "Unable to auto-attach. Do your existing subscriptions match the products installed on this system?"

Let's also make an effort to keep option description strings from starting with a capital letter, and not end with any punctuation. This means that we need to uncapitalize most of the starting words in rhn-migrate-classic-to-rhsm --help (included as part of the changes to any relevant strings above). 

Last two Options that need to be tweaked:

#: ../bin/rhn-migrate-classic-to-rhsm:67
msgid "Ignore channels not available on RHSM"
8. "ignore channels not available on RHSM"

#: ../bin/rhn-migrate-classic-to-rhsm:76 
msgid "Specify the subscription management service to migrate to."
9. "specify the subscription management service to migrate to"
(BZ 873884 already covered some alterations to this string, which I think are in now)


Version-Release number of selected component (if applicable):
subscription-manager-1.1.15-1

Additional Info:
I think these are the last updates to migration

Comment 1 Matt Reid 2012-11-13 20:33:00 UTC
If 874776 gets updated based on comment 3, and we get --auto-attach in the register module, we'll need to implement #4 and #5 from above instead as:

#: ../bin/rhn-migrate-classic-to-rhsm:69
msgid   "Launch the GUI tool to subscribe the system, instead of   autosubscribing"
4. "launch the GUI tool to attach subscriptions, instead of auto-attaching"

#: ../bin/rhn-migrate-classic-to-rhsm:71
msgid ""
"Don't execute the autosubscribe option while registering with subscription "
"manager."
5. "don't execute the auto-attach option while registering using subscription manager"

Comment 2 Bryan Kearney 2012-11-15 21:16:57 UTC
commit 4a16b295c4c17adb8150a741b72e32ce94c88e6f
Author: Bryan Kearney <bkearney>
Date:   Tue Nov 13 16:17:05 2012 -0500

    876294: Use attach instead of subscirbe in the rhn migration tooling

Comment 4 Matt Reid 2012-11-15 22:04:12 UTC
This is my fault for making the bz confusing (sorry!), but #4 and 5 should have a hyphen in auto-attach, as per comment 1, since we did update to --auto-attach in register.

Two other minor issues:

#1 needs to have the 'f' in "For no service level..." lowercased, since we have a comma there now, instead of a period.

#4 has a typo and reads 'attach subsriptions'

Other than that, looks great!

Comment 6 Matt Reid 2012-11-16 15:37:48 UTC
Couple things to clean up, and then we're set here.

Comment 7 Bryan Kearney 2012-11-16 16:05:56 UTC
commit 11bac8dfa6476d402a35301148bba6b4a64ec023
Author: Bryan Kearney <bkearney>
Date:   Fri Nov 16 11:07:01 2012 -0500

    876294: Fix typos introduced by string updates

Comment 10 John Sefler 2012-12-18 19:34:02 UTC
Verifying Version....
[root@jsefler-6 ~]# rpm -q subscription-manager
subscription-manager-1.1.16-1.el6.x86_64

Using one of the translated language files to verify the extracted msgids...
[root@jsefler-6 ~]# cd /usr/share/locale/ja/LC_MESSAGES


(In reply to comment #0)
> #: ../bin/rhn-migrate-classic-to-rhsm:73
> msgid ""
> "Service level to subscribe this system to. For no service level use
> --""service-level=\"\""
> 1. "service level followed when attaching subscriptions, for no service
> level use --service-level=\"\""

[root@jsefler-6 LC_MESSAGES]# msgunfmt --no-wrap rhsm.mo | grep -i "for no"
msgid "service level to follow when attaching subscriptions, for no service level use --servicelevel=\"\""

VERIFIED


> #: ../bin/rhn-migrate-classic-to-rhsm:455
> msgid "Launching the GUI tool to manually subscribe the system ..."
> msgstr ""
> 2. "Launching the GUI tool to manually attach subscriptions to this
> system..."

[root@jsefler-6 LC_MESSAGES]# msgunfmt --no-wrap rhsm.mo | grep -i "launching the gui"
msgid "Launching the GUI tool to manually attach subscriptions to this system ..."

VERIFIED


> #: ../bin/rhn-migrate-classic-to-rhsm:458
> msgid "Attempting to auto-subscribe to appropriate subscriptions ..."
> 3. "Attempting to auto-attach to appropriate subscriptions..."

[root@jsefler-6 LC_MESSAGES]# msgunfmt --no-wrap rhsm.mo | grep -i "Attempting to auto"
msgid "Attempting to auto-attach to appropriate subscriptions ..."

VERIFIED


> #: ../bin/rhn-migrate-classic-to-rhsm:69
> msgid   "Launch the GUI tool to subscribe the system, instead of  
> autosubscribing"
> 4. "launch the GUI tool to attach subscriptions, instead of autoattaching"

[root@jsefler-6 LC_MESSAGES]# msgunfmt --no-wrap rhsm.mo | grep -i "launch the gui"
msgid "launch the GUI tool to attach subscriptions, instead of auto-attaching"

VERIFIED


> #: ../bin/rhn-migrate-classic-to-rhsm:71
> msgid ""
> "Don't execute the autosubscribe option while registering with subscription "
> "manager."
> 5. "don't execute the autoattach option while registering using subscription
> manager"

[root@jsefler-6 LC_MESSAGES]# msgunfmt --no-wrap rhsm.mo | grep -i "don't"
msgid "don't execute the auto-attach option while registering with subscription manager"

VERIFIED: ("with"->"using" was not changed; no big deal; "auto-attach" was the important change)


> #: ../bin/rhn-migrate-classic-to-rhsm:458
> msgid "Attempting to auto-subscribe to appropriate subscriptions ..."
> msgstr ""
> 6. "Attempting to auto-attach appropriate subscriptions..."

[root@jsefler-6 LC_MESSAGES]# msgunfmt --no-wrap rhsm.mo | grep -i "attempting to auto"
msgid "Attempting to auto-attach to appropriate subscriptions ..."

VERIFIED


> #: ../bin/rhn-migrate-classic-to-rhsm:467
> msgid ""
> "\n"
> "Unable to auto-subscribe.  Do your existing subscriptions match the
> products "
> "installed on this system?"
> msgstr ""
> 7. "Unable to auto-attach. Do your existing subscriptions match the products
> installed on this system?"

[root@jsefler-6 LC_MESSAGES]# msgunfmt --no-wrap rhsm.mo | grep -i "unable to auto"
"Unable to auto-attach.  Do your existing subscriptions match the products installed on this system?"
msgid "Unable to auto-attach, server does not support service levels."
msgid "Unable to auto-attach, server does not support service levels. Please run 'Subscription Manager' to manually attach a subscription."

VERIFIED


> #: ../bin/rhn-migrate-classic-to-rhsm:67
> msgid "Ignore channels not available on RHSM"
> 8. "ignore channels not available on RHSM"

[root@jsefler-6 LC_MESSAGES]# msgunfmt --no-wrap rhsm.mo | grep -i "ignore channels"
msgid "ignore channels not available on RHSM"

VERIFIED


> #: ../bin/rhn-migrate-classic-to-rhsm:76 
> msgid "Specify the subscription management service to migrate to."
> 9. "specify the subscription management service to migrate to"
> (BZ 873884 already covered some alterations to this string, which I think
> are in now)

[root@jsefler-6 LC_MESSAGES]# msgunfmt --no-wrap rhsm.mo | grep -i "specify the sub"
msgid "specify the subscription management server to migrate to"

VERIFIED


(In reply to comment #1)
> If 874776 gets updated based on comment 3, and we get --auto-attach in the
> register module, we'll need to implement #4 and #5 from above instead as:
> 
> #: ../bin/rhn-migrate-classic-to-rhsm:69
> msgid   "Launch the GUI tool to subscribe the system, instead of  
> autosubscribing"
> 4. "launch the GUI tool to attach subscriptions, instead of auto-attaching"

VERIFIED above



> #: ../bin/rhn-migrate-classic-to-rhsm:71
> msgid ""
> "Don't execute the autosubscribe option while registering with subscription "
> "manager."
> 5. "don't execute the auto-attach option while registering using
> subscription manager"

VERIFIED above

Comment 12 errata-xmlrpc 2013-02-21 09:00:26 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory, and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

http://rhn.redhat.com/errata/RHBA-2013-0350.html