Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.

Bug 1167894

Summary: The language translations for "Unit {0} has been deleted" are not rendering
Product: [Community] Candlepin (Migrated to Jira) Reporter: John Sefler <jsefler>
Component: candlepinAssignee: William Poteat <wpoteat>
Status: CLOSED CURRENTRELEASE QA Contact: Katello QA List <katello-qa-list>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 0.9CC: dgoodwin, lijli, vrjain, wpoteat
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2015-10-13 20:26:15 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: 1125249    

Description John Sefler 2014-11-25 15:11:08 UTC
Description of problem:
For some reason unknown to me, the "Unit {0} has been deleted" string is not rendering in any of the translated languages.


Version-Release number of selected component (if applicable):
[root@jsefler-os7 ~]# subscription-manager version
server type: This system is currently not registered.
subscription management server: 0.9.36-1
subscription management rules: 5.11
subscription-manager: 1.13.9-1.el7
python-rhsm: 1.13.8-1.el7


How reproducible:


Steps to Reproduce:
[root@jsefler-os7 ~]# subscription-manager register
Username: testuser1
Password: 
Organization: admin
The system has been registered with ID: a857e245-fd47-4e9d-af88-8149dd2e81d4 
[root@jsefler-os7 ~]# cp /etc/pki/consumer/cert.pem /tmp
[root@jsefler-os7 ~]# cp /etc/pki/consumer/key.pem /tmp
[root@jsefler-os7 ~]# subscription-manager unregister
System has been unregistered.
[root@jsefler-os7 ~]# mv /tmp/cert.pem /etc/pki/consumer/
[root@jsefler-os7 ~]# mv /tmp/key.pem /etc/pki/consumer/
[root@jsefler-os7 ~]# subscription-manager identity
Unit a857e245-fd47-4e9d-af88-8149dd2e81d4 has been deleted
[root@jsefler-os7 ~]# LANG=pr_BR.utf-8 subscription-manager identity
Unit a857e245-fd47-4e9d-af88-8149dd2e81d4 has been deleted
[root@jsefler-os7 ~]# LANG=fr_FR.utf-8 subscription-manager identity
Unit a857e245-fd47-4e9d-af88-8149dd2e81d4 has been deleted
[root@jsefler-os7 ~]# LANG=ja_JP.utf-8 subscription-manager identity
Unit a857e245-fd47-4e9d-af88-8149dd2e81d4 has been deleted
[root@jsefler-os7 ~]# LANG=de_DE.utf-8 subscription-manager identity
Unit a857e245-fd47-4e9d-af88-8149dd2e81d4 has been deleted
[root@jsefler-os7 ~]# LANG=as_IN.utf-8 subscription-manager identity
Unit a857e245-fd47-4e9d-af88-8149dd2e81d4 has been deleted



Actual results:
No matter what LANG is tested, the return message is not translated.  It always renders in English.

Expected results:



Additional info:
[root@jsefler-os-candlepin po]# grep -B4 "has been deleted" keys.pot 

#: server/src/main/java/org/candlepin/resteasy/interceptor/AuthInterceptor.java:550
#: server/src/main/java/org/candlepin/resteasy/interceptor/ConsumerAuth.java:57
#, java-format
msgid "Unit {0} has been deleted"

Comment 1 William Poteat 2014-12-11 19:42:30 UTC
master commit d43746cafb2c57735bce72bac4723e8274dd1c9c

Comment 2 Devan Goodwin 2015-04-08 17:17:44 UTC
This does not appear to be fixed, per bug #1147363, also in the auth interceptor, strings are not getting translated in candlepin candlepin-0.9.49-1.

Comment 3 Devan Goodwin 2015-04-08 17:19:37 UTC
*** Bug 1147363 has been marked as a duplicate of this bug. ***

Comment 4 William Poteat 2015-04-21 13:20:09 UTC
This is showing correctly against the current master code. Please confirm against build 0.9.50-1

Comment 5 vritant 2015-10-13 20:26:15 UTC
Confirmed this works for all translations. closing this BZ with current release.