Bug 1167894 - The language translations for "Unit {0} has been deleted" are not rendering
Summary: The language translations for "Unit {0} has been deleted" are not rendering
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: Candlepin
Classification: Community
Component: candlepin
Version: 0.9
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
: ---
Assignee: William Poteat
QA Contact: Katello QA List
URL:
Whiteboard:
: 1147363 (view as bug list)
Depends On:
Blocks: rhsm-rhel67
TreeView+ depends on / blocked
 
Reported: 2014-11-25 15:11 UTC by John Sefler
Modified: 2015-10-13 20:26 UTC (History)
4 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2015-10-13 20:26:15 UTC
Embargoed:


Attachments (Terms of Use)

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.


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